[OpenSER-Devel] SF.net SVN: openser: [3506] trunk
Henning Westerholt
henning.westerholt at 1und1.de
Mon Jan 7 14:26:28 UTC 2008
Revision: 3506
http://openser.svn.sourceforge.net/openser/?rev=3506&view=rev
Author: henningw
Date: 2008-01-07 06:26:27 -0800 (Mon, 07 Jan 2008)
Log Message:
-----------
further cleanups in core database API
- move use_table and close function for SQL DBs to core
- move query, raw_query, insert, update, delete functions for SQL DBs to core
- all this functions were almost identical implemented in the three DB,
this functions uses now a function pointer based interface to do the work
- the use_table functions from dbtext and db_berkeley uses also now the core API
- move result management function from db_col to db_res to the other result
management functions, they are not useful alone
- change postgres module to match more the structure of mysql and unixodbc,
remove the 'PARANOID' #define, the other modules don't have this and prefix
all functions with db_postgres, make this more consistent to mysql module
- prefix all functions in unixodbc module with db_unixodbc, make this consistent
to the other modules, cleanup the namespace
- prefix val2str function in mysql with db_mysql too
- move the SQL_BUF_LENGTH to core API, all modules need this
- remove the static SQL char buffer from postgres and unixodbc, uses the one
provided from the core API
- move documentation from db/doc to API files in doxygen format
- improve and extend documentation for the whole API
- make database API const correct, to guard against implementation errors and
allow better compiler optimizations
- change interface free_connection function in SQL DBs to connection structure
to allow the usage of core API do_close
- fix indention for postgres driver and make logging messages consistent
- remove now unneeded system header includes for SQL DBs
- remove transaction related code from postgres driver, this is not used at all
and according to Klaus also brings no performance benefit if used.
- probably some other smaller cleanups
Tested with the testcases, so basic functionality should work.. Please test! :-)
Modified Paths:
--------------
trunk/db/db.c
trunk/db/db.h
trunk/db/db_cap.h
trunk/db/db_con.h
trunk/db/db_id.c
trunk/db/db_id.h
trunk/db/db_key.h
trunk/db/db_op.h
trunk/db/db_pool.c
trunk/db/db_pool.h
trunk/db/db_res.c
trunk/db/db_res.h
trunk/db/db_row.c
trunk/db/db_row.h
trunk/db/db_ut.c
trunk/db/db_ut.h
trunk/db/db_val.h
trunk/modules/db_berkeley/db_berkeley.c
trunk/modules/dbtext/dbt_api.c
trunk/modules/mysql/dbase.c
trunk/modules/mysql/dbase.h
trunk/modules/mysql/my_con.c
trunk/modules/mysql/my_con.h
trunk/modules/mysql/res.c
trunk/modules/mysql/res.h
trunk/modules/mysql/row.c
trunk/modules/mysql/row.h
trunk/modules/mysql/val.c
trunk/modules/mysql/val.h
trunk/modules/postgres/db_mod.c
trunk/modules/postgres/db_res.c
trunk/modules/postgres/db_val.c
trunk/modules/postgres/dbase.c
trunk/modules/postgres/dbase.h
trunk/modules/postgres/pg_con.c
trunk/modules/postgres/pg_con.h
trunk/modules/unixodbc/db_mod.c
trunk/modules/unixodbc/dbase.c
trunk/modules/unixodbc/dbase.h
trunk/modules/unixodbc/my_con.c
trunk/modules/unixodbc/my_con.h
trunk/modules/unixodbc/res.c
trunk/modules/unixodbc/res.h
trunk/modules/unixodbc/row.c
trunk/modules/unixodbc/row.h
trunk/modules/unixodbc/val.c
trunk/modules/unixodbc/val.h
Added Paths:
-----------
trunk/db/db_query.c
trunk/db/db_query.h
trunk/modules/postgres/db_res.h
trunk/modules/postgres/db_val.h
Removed Paths:
-------------
trunk/db/db_col.c
trunk/db/db_col.h
trunk/modules/mysql/db_con.c
trunk/modules/postgres/defs.h
trunk/modules/unixodbc/db_con.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Devel
mailing list