Part II. Client API Reference

Table of Contents

Object Hierarchy
Initialization and configuration
Libgda initialization — Library initialization
Configuration — Access/Management of libgda configuration
Configuring libgda with environment variables
Connections & commands
GdaClient — Database client access
GdaConnection — Management of connections to data sources
GdaConnectionEventAny event which has occurred on a GdaConnection
GdaTransactionStatus — Keeps track of the transactional status of a connection
Commands — Issuing commands to the provider
Convenient functions — Do quickly some actions
Virtual connections
GdaVirtualProvider — Base class for all virtual providers
GdaVproviderDataModel — Virtual provider for connections based on a list of GdaDataModel
GdaVproviderHub — Virtual provider for connections based on other connection
GdaVirtualConnection — Base class for all virtual connection objects
GdaVconnectionDataModel — Virtual connection based on a list of GdaDataModel
GdaVconnectionHub — Virtual connection which bind together connections
Data handling
Gda ValueSingle value stored in a GdaDataModel
Blobs — Binary data and BLOBs handling
GdaParameterRepresents a GValue with various attributes
GdaParameterListManages a list of GdaParameter objects which contain individual values
GdaDataModel — Basic data model class
GdaDataModel columnsManagement of GdaDataModel column attributes
GdaDataModelIter
GdaDataModelImport — Importing data from a string or a file
GdaDataAccessWrapper — Offers a random access on top of a cursor-only access data model
GdaDataModelArrayAn implementation of GdaDataModel based on a GArray.
GdaDataModelBdb — GdaDataModel to access Berkeley DB database contents
GdaDataModelDir — GdaDataModel to list files in filesystem
GdaDataModelHashAn implementation of GdaDataModel based on a hash table
GdaDataModelQuery — An implementation of GdaDataModel based on a SELECT query
GdaDataModelFilterSQLFiltering data from one or several GdaDataModel objects
GdaDataProxyProxy to hold modifications for any GdaDataModel, and provides the GdaDataModel interface itself
GdaDataModelIndexManagement of GdaDataModel indexes
GdaDataModel column indexesManagement of GdaDataModel column index attributes
Data conversions
GdaDataHandler — Interface which provides data handling capabilities
GdaHandlerString — Default handler for strings
GdaHandlerBoolean — Default handler for booleans
GdaHandlerTime — Default handler for time, date and timestamp
GdaHandlerNumerical — Default handler for numeric values
GdaHandlerBin — Default handler for binary values
GdaHandlerType — Default handler for GType values
Dictionary and related objects
GdaDict — GDA dictionary
GdaDictType — Represents a data type in the DBMS
GdaDictFunction — Represents a function in the DBMS.
GdaDictAggregateRepresents an aggregate in the DBMS (like COUNT() or AVG() for example)
GdaDictDatabase — Represents a database structure in the DBMS server
GdaDictTable — Represents a table or a view in the database
GdaDictField — Represents a field in a table or a view in the database
GdaDictConstraint — Represents a constraint within a database
GdaDictExtend — Make GdaDict manage other types of objects
Data manipulation (DML) queries
GdaQuery — Represents any kind of DML query
GdaQueryTarget — Represents a target entity within a query.
GdaQueryJoin — Represents a join between two different entities
GdaQueryFieldAllRepresents all the fields of an entity (through a GdaQueryTarget object)
GdaQueryFieldFieldRepresents one field of an entity (through a GdaQueryTarget object)
GdaQueryFieldFuncRepresents a function (selected by a GdaDictFunction object)
GdaQueryFieldAgg — Represents a function (selected by a GdaDictAggregate object)
GdaQueryFieldValue — Represents a single value (or a parameter)
GdaQueryCondition — Represents a condition within a query
Data definition (DDL) queries
GdaServerOperation — Handles any DDL query in an abstract way
Miscellaneous
Utility functions
Logging — Log functions
Quark lists — Quark lists (lists of KEY=VALUE's)
GdaObject — The base class for many of the library's objects
GdaObjectRef — Used to reference other objects
GdaGraphviz — Creates .dot files which can then be processed with GraphViz.
GdaDataModelRowBase implementation for other objects to implement the GdaDataModel interface based on the usage of
GdaQueryField — Parent class for any query's field
GdaQueryObjectParent class for any object participating in a GdaQuery query
GdaThreader
Graphs
GdaGraph — Data model to keep graphs' layout
GdaGraphQuery — A graph specialized in displaying query components
GdaGraphItemParts of data model used with the GdaGraph object.
List of lesser used interfaces
GdaEntity — Interface to represent a generic entity (for tables, views or queries)
GdaEntityField — Interface to represent a generic field (for tables's fields, etc).
GdaXmlStorage — Interface which provides saving and loading using XML structures
GdaRenderer — Interface to get representations of objects as SQL statements, XML nodes or human readable text
GdaReferer — Interface to know when on object is completely defined

The following sections describe the API available for GDA applications.