Martin Landa a7d92cb3ca db-pg: fix db__driver_list_tables() for tables which contain 'pg_' in the name 11 年之前
..
dbf 51e2578aa9 DB driver meta manuals: header/footer completed 12 年之前
mysql 51e2578aa9 DB driver meta manuals: header/footer completed 12 年之前
odbc 51e2578aa9 DB driver meta manuals: header/footer completed 12 年之前
ogr 51e2578aa9 DB driver meta manuals: header/footer completed 12 年之前
postgres a7d92cb3ca db-pg: fix db__driver_list_tables() for tables which contain 'pg_' in the name 11 年之前
sqlite d7a7639c17 sqlite driver: create directory if not existing 12 年之前
Makefile 1292bf9a1e Major build system clean-up 17 年之前
README 03c1931405 DB drivers: SQLite - create_database() and list_databases() implemented 12 年之前
mk_dbdriver_h.sh f70ce6ccae update mk_dbdriver_h.sh 14 年之前

README

This directory contains drivers for the DBMI library.
The driver functions are for internal usage.

The DBMI API to be used for module programming is available in:
lib/db/


NOTE:
db__driver_* functions are implemented in a driver. If some of them
are not used or defined, the driver will use stub functions in
lib/db/stubs/

For some platforms like Cygwin, multiply defined symbols are not
resolved in a way that UNIX does. Even worse is that it is impossible
to build shared libraries with undefined symbols. For example,
libgrass_dbmidriver.so cannot be built without any implementations
of db__driver_* functions which should be specific to a db driver.

To work around this problem, function pointers are defined to use
driver's implementations instead of those of the db stubs library.
To do this automatically, run '../mk_dbdriver_h.sh' in driver's
directory, #include "dbdriver.h" from main.c, and execute init_dbdriver().

Function pointers are defined in grass6/lib/db/dbmi_driver/dbstubs.h
This header file can be generated with
lib/db/dbmi_driver/mk_dbstubs_h.sh

Please read lib/db/README