Gda
Description:
Content:
Interfaces:
Classes:
- Batch
- Binary
- Blob - Represents some binary data, accessed through a BlobOp object.
- BlobOp
- Column
- Config
- Connection
- ConnectionEvent
- DataAccessWrapper
- DataComparator
- DataModelArray
- DataModelDir
- DataModelImport
- DataModelIter
- DataModelLdap
- DataPivot
- DataProxy
- DataSelect
- Default
- DsnInfo - This structure defines the properties of a named data source (DSN).
- GeometricPoint
- HandlerBin
- HandlerBinPriv
- HandlerBoolean
- HandlerBooleanPriv
- HandlerNumerical
- HandlerNumericalPriv
- HandlerString
- HandlerStringPriv
- HandlerTime
- HandlerTimePriv
- HandlerType
- HandlerTypePriv
- Holder
- MetaContext - The MetaContext
represents a meta data modification context: the
how
when used with modify_with_context, and thewhat
when used with update_meta_store. - MetaStore
- MetaStruct
- Null
- Numeric - Holds numbers represented as strings.
- PStmt
- QuarkList
- RepetitiveStatement
- Row
- ServerOperation
- ServerProvider
- ServerProviderInfo
- Set
- SetGroup - Since 5.2, you must consider this struct as opaque.
- SetNode - Since 5.2, you must consider this struct as opaque.
- SetSource - Since 5.2, you must consider this struct as opaque.
- Short
- SqlBuilder
- SqlParser
- SqlStatement
- SqlStatementDelete
- SqlStatementInsert
- SqlStatementSelect
- SqlStatementTransaction
- SqlStatementUnknown
- SqlStatementUpdate
- Statement
- ThreadWrapper
- Time - Represents a time information.
- Timestamp - Represents an instant (a time stamp)
- TransactionStatus
- Tree
- TreeManager
- TreeMgrColumns
- TreeMgrColumnsPriv
- TreeMgrLabel
- TreeMgrLabelPriv
- TreeMgrLdap
- TreeMgrLdapPriv
- TreeMgrSchemas
- TreeMgrSchemasPriv
- TreeMgrSelect
- TreeMgrSelectPriv
- TreeMgrTables
- TreeMgrTablesPriv
- TreeNode
- UShort
- XaTransaction
Structs:
- Diff
- MetaDbObject - Struture to hold information about each database object (tables, views, ...), its contents must not be modified.
- MetaStoreChange
- MetaTable - This structure specifies a MetaDbObject to represent a table's specific attributes, its contents must not be modified.
- MetaTableColumn - This structure represents a table of view's column, its contents must not be modified.
- MetaTableForeignKey - This structure represents a foreign key constraint, its contents must not be modified.
- MetaView - This structure specifies a MetaDbObject to represent a view's specific attributes, its contents must not be modified.
- Mutex
- ProviderInfo - This structure holds the information associated to a database provider as discovered by Libgda.
- ServerOperationNode
- ServerProviderHandlerInfo
- SqlBuilderId
- SqlParserIface
- SqlRenderingContext - Specifies the context in which a SqlStatement is being converted to SQL.
- ThreadNotification - A notification to be read through the IOChannel which is returned by get_io_channel, for example:
- TransactionStatusEvent
- XaTransactionId
Enums:
- BatchError
- ConfigError
- ConnectionError
- ConnectionEventCode
- ConnectionEventType
- ConnectionFeature - Used in supports_feature and supports_feature to test if a connection or a database provider supports some specific feature.
- ConnectionMetaType - Used with get_meta_store_data to describe what meta data to extract from a connection's associated MetaStore.
- ConnectionOptions - Specifies some aspects of a connection when opening it.
- DataComparatorError
- DataModelAccessFlags
- DataModelHint
- DataModelIOFormat - Format to use when exporting a data model, see export_to_string and export_to_file
- DataModelIterError
- DataPivotAggregate - Possible operations for the data fields.
- DataPivotError - Possible DataPivot related errors.
- DataPivotFieldType - Define types of field to be used when defining a DataPivot analysis.
- DataProxyError
- DataSelectConditionType - Defines what criteria compute_modification_statements_ext uses to uniquely identify a single row in a table when creating modification statements.
- DataSelectError
- DiffType
- HolderError
- LdapSearchScope - Defines the search scope of an LDAP search command, relative to the base object.
- MetaDbObjectType - Type of database object which can be handled as a MetaDbObject
- MetaForeignKeyPolicy - Defines the filtering policy of a foreign key when invoked on an UPDATE or DELETE operation.
- MetaGraphInfo
- MetaSortType - Types of sorting
- MetaStoreChangeType
- MetaStoreError
- MetaStructError
- MetaStructFeature - Controls which features are computed about database objects.
- ServerOperationCreateTableFlag
- ServerOperationError
- ServerOperationNodeStatus
- ServerOperationNodeType
- ServerOperationType
- ServerProviderError
- SetError
- SqlBuilderError
- SqlIdentifierStyle - Specifies how SQL identifiers are represented by a specific database
- SqlOperatorType
- SqlParserError
- SqlParserFlavour
- SqlParserMode
- SqlSelectJoinType
- SqlStatementCompoundType
- SqlStatementType - Known types of statements
- StatementError
- StatementModelUsage - These flags specify how the DataModel returned when executing a Statement will be used
- StatementSqlFlag - Specifies rendering options
- ThreadNotificationType - Defines the kind of notification which can be obtained when reading from te IOChannel returned by get_io_channel.
- ThreadWrapperError
- TransactionIsolation
- TransactionStatusEventType
- TransactionStatusState
- TreeError
- TreeManagerError
- TreeNodeError
- ValueAttribute
- XaTransactionError
Error domains:
Constants:
- public const string ATTRIBUTE_AUTO_INCREMENT
The corresponding attribute specifies if the object it refers to is auto incremented (value has a G_TYPE_BOOLEAN type).
- public const string ATTRIBUTE_DESCRIPTION
The corresponding attribute is the description of the object it refers to (value has a G_TYPE_STRING type).
- public const string ATTRIBUTE_IS_DEFAULT
The corresponding attribute specifies if the object it refers to has its value to default (value has a G_TYPE_BOOLEAN type).
- public const string ATTRIBUTE_NAME
The corresponding attribute is the name of the object it refers to (value has a G_TYPE_STRING type).
- public const string ATTRIBUTE_NUMERIC_PRECISION
The corresponding attribute is the number of significant digits of the object it refers to (value has a G_TYPE_INT type).
- public const string ATTRIBUTE_NUMERIC_SCALE
The corresponding attribute is the number of significant digits to the right of the decimal point of the object it refers to (value has a G_TYPE_INT type).
- public const string ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN
This attribute, if
true
specifies that a tree node may or may not have any children nodes (value has a G_TYPE_BOOLEAN type). - public const string EXTRA_AUTO_INCREMENT
- public const string SQLSTATE_GENERAL_ERROR
- public const string SQLSTATE_NO_ERROR
- public const int TIMEZONE_INVALID
Delegates:
- public delegate void AttributesManagerFunc (string att_name, Value value, void* data)
- public delegate void AttributesManagerSignal (Object obj, string att_name, Value value, void* data)
- public delegate void ServerProviderAsyncCallback (ServerProvider provider, Connection cnc, uint task_id, bool result_status, Error error, void* data)
Function to be called by Libgda when the associated asynchronous method invoked finishes.
- public delegate void ServerProviderExecCallback (ServerProvider provider, Connection cnc, uint task_id, Object result_obj, Error error, void* data)
Function to be called by Libgda when the associated asynchronous method invoked finishes
- public delegate string SqlRenderingValue (Value value, SqlRenderingContext context) throws Error
Rendering function type to render a Value
- public delegate bool SqlReservedKeywordsFunc (string word)
- public delegate void ThreadWrapperCallback (ThreadWrapper wrapper, void* instance, string signame, int n_param_values, Value param_values, void* gda_reserved, void* data)
Specifies the type of function to be passed to connect_raw
- public delegate void* ThreadWrapperFunc (void* arg) throws Error
Specifies the type of function to be passed to execute.
- public delegate void ThreadWrapperVoidFunc (void* arg) throws Error
Specifies the type of function to be passed to execute_void.
Functions:
- public string alphanum_to_text (string text)
Does the opposite of text_to_alphanum, in the same string
- public string[]? completion_list_get (Connection cnc, string sql, int start, int end)
Creates an array of strings (terminated by a
null
) corresponding to possible completions. - public bool compute_dml_statements (Connection cnc, Statement select_stmt, bool require_pk, owned Statement? insert_stmt, owned Statement? update_stmt, owned Statement? delete_stmt) throws Error
Creates an INSERT, an UPDATE and a DELETE statement from a SELECT statement using the database metadata available in
cnc
's meta store. - public unowned DataHandler data_handler_get_default (Type for_type)
- public void dsn_split (string string, string out_dsn, string out_username, string out_password)
Extract the DSN, username and password from
string
. - public Type g_type_from_string (string str)
Converts a named type to ts GType type (also see the g_type_to_string function).
- public unowned string g_type_to_string (Type type)
Converts a GType to its string representation (use g_type_from_string for the operation in the other direction).
- public string get_application_exec_path (string app_name)
Find the path to the application identified by
app_name
. - public bool identifier_equal (string id1, string id2)
Does the same as strcmp(
id1
,id2
), but handles the case where id1 and/or id2 are enclosed in double quotes. - public uint identifier_hash (string id)
computes a hash string from
id
, to be used in hash tables as a HashFunc - public void init ()
Initializes the GDA library, must be called prior to any Libgda usage.
- public void locale_changed ()
- public void log_disable ()
Disables GDA logs.
- public void log_enable ()
Enables GDA logs.
- public bool log_is_enabled ()
- public bool parse_formatted_date (Date gdate, string value, DateDMY first, DateDMY second, DateDMY third, char sep)
This function is similar to parse_iso8601_date (with
first
beingG_DATE_YEAR
,second
beingG_DATE_MONTH
,third
beingG_DATE_DAY
andsep
being '-') but allows one to specify the expected date format. - public bool parse_formatted_time (Time timegda, string value, char sep)
- public bool parse_formatted_timestamp (Timestamp timestamp, string value, DateDMY first, DateDMY second, DateDMY third, char sep)
This function is similar to parse_iso8601_timestamp (with
first
beingG_DATE_YEAR
,second
beingG_DATE_MONTH
,third
beingG_DATE_DAY
andsep
being '-') but allows one to specify the expected date format. - public bool parse_iso8601_date (Date gdate, string value)
Extracts date parts from
value
, and setsgdate
's contents - public bool parse_iso8601_time (Time timegda, string value)
Extracts time parts from
value
, and setstimegda
's contents - public bool parse_iso8601_timestamp (Timestamp timestamp, string value)
Extracts date and time parts from
value
, and setstimestamp
's contents - public bool rewrite_statement_for_null_parameters (Statement stmt, Set @params, owned Statement? out_stmt) throws Error
Modifies
stmt
to take into account any parameter which might benull
: ifstmt
contains the equivalent of "xxx = <parameter definition>" and if that parameter is inparams
and its value is of type GDA_TYPE_NUL, then that part is replaced with "xxx IS NULL". - public bool rfc1738_decode (string string)
- public string rfc1738_encode (string string)
- public Statement select_alter_select_for_empty (Statement stmt) throws Error
Creates a new Statement, selecting the same data as
stmt
, but which always returns an empty (no row) data model. - public string sql_identifier_quote (string id, Connection? cnc, ServerProvider? prov, bool meta_store_convention, bool force_quotes)
- public string[]? sql_identifier_split (string id)
Splits
id
into an array of it sub parts. - public SqlOperatorType sql_operation_operator_from_string (string op)
- public unowned string sql_operation_operator_to_string (SqlOperatorType op)
- public Binary string_to_binary (string? str)
Performs the reverse of to_string (note that for any "\xyz" succession of 4 characters where "xyz" represents a valid octal value, the resulting read value will be modulo 256).
- public Blob string_to_blob (string str)
Performs the reverse of to_string.
- public string text_to_alphanum (string text)
The "encoding" consists in replacing non alphanumeric character with the string "__gdaXX" where XX is the hex.
- public bool utility_check_data_model_v (DataModel model, Type[] types)
Check the column types of a GdaDataModel.
- public bool utility_data_model_dump_data_to_xml (DataModel model, unowned Node* parent, int[]? cols, int[]? rows, bool use_col_ids)
Dump the data in a DataModel into a xmlNodePtr (as used in libxml).
- public unowned string utility_data_model_find_column_description (DataSelect model, string field_name)
Finds the description of a field into Metadata from a DataModel.
- public bool utility_holder_load_attributes (Holder holder, unowned Node* node, SList<DataModel> sources) throws Error
Note: this method may set the "source" custom string property
- public int value_compare (Value value1, Value value2)
Compares two values of the same type, with the exception that a value of any type can be compared to a GDA_TYPE_NULL value, specifically:
- public int value_differ (Value value1, Value value2)
Tells if two values are equal or not, by comparing memory representations.
- public string value_stringify (Value value)
Converts a GValue to its string representation which is a human readable value.