[gnome-db] GNOME 2 providers: new method
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: GDA <gnome-db-list gnome org>
- Subject: [gnome-db] GNOME 2 providers: new method
- Date: 27 Dec 2001 19:36:30 +0100
Hi
For people hacking on the GNOME 2 providers: there's a new method you
should implement for the Gda*Provider class:
GdaServerRecordset *gda_*_provider_get_schema (
GdaServerProvider *provider,
GdaServerConnection *cnc,
GNOME_Database_Connection_Schema schema,
GdaParameterList *params);
schema is an enum, defined in GNOME_Database.h which, right now, only
contains GNOME_Database_Connection_SCHEMA_TABLES (for tables).
The params parameter will contain different parameters for specifying
extra data to be returned, such as EXTRA_INFO, etc. For the moment, you
just have to implement the SCHEMA_TABLES schema, which means just
returning a recordset containing the names of all the tables in the
given connection.
As usual, you can have a look at the mysql provider for sample code.
cheers
--
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]