Gda-6.0 – Vala Binding Reference

Gda-6.0 Reference Manual

# Gda-6.0

## Description:

## Content:

### Namespaces:

- Gda

### Interfaces:

- DataHandler
- DataModel
- DbBuildable
- DdlModifiable
- Lockable
- Provider
- ProviderMeta

### Classes:

- Batch
- Binary
- Blob
- BlobOp
- BlobOpFunctions
- Column
- Config
- Connection
- ConnectionEvent
- DataAccessWrapper
- DataComparator
- DataModelArray
- DataModelDir
- DataModelImport
- DataModelImportIter
- DataModelIter
- DataModelSelect
- DataPivot
- DataProxy
- DataSelect
- DataSelectIter
- DbBase
- DbCatalog
- DbColumn
- DbFkey
- DbIndex
- DbIndexField
- DbTable
- DbView
- Default
- Diff
- DsnInfo
- GeometricPoint
- HandlerBin
- HandlerBoolean
- HandlerNumerical
- HandlerString
- HandlerText
- HandlerTime
- HandlerType
- Holder
- MetaContext
- MetaStore
- MetaStoreChange
- MetaStruct
- Null
- Numeric
- PStmt
- ProviderInfo
- QuarkList
- RepetitiveStatement
- Row
- ServerOperation
- ServerOperationCreateTableArg
- ServerOperationCreateTableArgFKeyRefField
- ServerOperationNode
- ServerProvider
- ServerProviderBase
- ServerProviderConnectionData
- Set
- SetGroup
- SetNode
- SetSource
- Short
- SqlAnyPart
- SqlBuilder
- SqlCase
- SqlExpr
- SqlField
- SqlFunction
- SqlOperation
- SqlParamSpec
- SqlParser
- SqlSelectField
- SqlSelectFrom
- SqlSelectJoin
- SqlSelectOrder
- SqlSelectTarget
- SqlStatement
- SqlStatementContentsInfo
- SqlTable
- Statement
- Text
- Time
- TransactionStatus
- TransactionStatusEvent
- Tree
- TreeManager
- TreeMgrColumns
- TreeMgrLabel
- TreeMgrSchemas
- TreeMgrSelect
- TreeMgrTables
- TreeNode
- UShort
- Worker
- XaTransaction
- XaTransactionId

### Structs:

- MetaDbObject
- MetaTable
- MetaTableColumn
- MetaTableForeignKey
- MetaView
- ServerProviderHandlerInfo
- SqlBuilderId
- SqlParserIface
- SqlStatementCheckValidityData
- SqlStatementCompound
- SqlStatementDelete
- SqlStatementInsert
- SqlStatementSelect
- SqlStatementTransaction
- SqlStatementUnknown
- SqlStatementUpdate

### Enums:

- BatchError
- ConfigError
- ConnectionError
- ConnectionEventCode
- ConnectionEventType
- ConnectionFeature
- ConnectionMetaType
- ConnectionOptions
- ConnectionStatus
- DataComparatorError
- DataModelAccessFlags
- DataModelHint
- DataModelIOFormat
- DataModelIterError
- DataPivotAggregate
- DataPivotError
- DataPivotFieldType
- DataProxyError
- DataSelectConditionType
- DataSelectError
- DbCatalogError
- DbColumnError
- DbFkeyReferenceAction
- DbIndexError
- DbIndexSortOrder
- DbTableError
- DbViewRefAction
- DiffType
- HolderError
- MetaDbObjectType
- MetaForeignKeyPolicy
- MetaGraphInfo
- MetaSortType
- MetaStoreChangeType
- MetaStoreError
- MetaStructError
- MetaStructFeature
- ServerOperationCreateTableFlag
- ServerOperationError
- ServerOperationNodeStatus
- ServerOperationNodeType
- ServerOperationType
- ServerProviderError
- ServerProviderFunctionsType
- ServerProviderMetaType
- SetError
- SqlAnyPartType
- SqlBuilderError
- SqlIdentifierStyle
- SqlOperatorType
- SqlParserError
- SqlParserFlavour
- SqlParserMode
- SqlSelectJoinType
- SqlStatementCompoundType
- SqlStatementType
- StatementError
- StatementModelUsage
- StatementSqlFlag
- TransactionIsolation
- TransactionStatusEventType
- TransactionStatusState
- TreeError
- TreeManagerError
- TreeNodeError
- ValueAttribute
- XaTransactionError
- XaType

### Error domains:

- DataModelError
- DdlModifiableError
- ProviderMetaError
- SqlError
- WorkerError

### Constants:

- public const string ATTRIBUTE_AUTO_INCREMENT
- public const string ATTRIBUTE_DESCRIPTION
- public const string ATTRIBUTE_IS_DEFAULT
- public const string ATTRIBUTE_NAME
- public const string ATTRIBUTE_NUMERIC_PRECISION
- public const string ATTRIBUTE_NUMERIC_SCALE
- public const string ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN
- 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 ConnectionOpenFunc (Connection cnc, uint job_id, bool result, Error error, void* data)
- public delegate bool SqlForeachFunc (SqlAnyPart part, void* data) throws Error
- public delegate bool SqlReservedKeywordsFunc (string word)
- public delegate TreeNode TreeManagerNodeFunc (TreeManager manager, TreeNode? parent, string? name)
- public delegate SList<unowned TreeNode> TreeManagerNodesFunc (TreeManager manager, TreeNode? node, SList<TreeNode> children_nodes, out bool out_error) throws Error
- public delegate void WorkerCallback (Worker worker, uint job_id, void* result_data, Error error)
- public delegate void* WorkerFunc () throws Error

### Methods:

- public string? alphanum_to_text (string text)
- public string[]? completion_list_get (Connection cnc, string sql, int start, int end)
- public bool compute_dml_statements (Connection cnc, Statement select_stmt, bool require_pk, out Statement? insert_stmt, out Statement? update_stmt, out Statement? delete_stmt) throws Error
- public SqlStatement? compute_select_statement_from_update (Statement update_stmt) throws Error
- public SqlExpr? compute_unique_table_row_condition (SqlStatementSelect stsel, MetaTable mtable, bool require_pk) throws Error
- public SqlExpr? compute_unique_table_row_condition_with_cnc (Connection? cnc, SqlStatementSelect stsel, MetaTable mtable, bool require_pk) throws Error
- public DataHandler data_handler_get_default (Type for_type)
- public DateTime date_time_copy (DateTime ts)
- public string? default_escape_string (string string)
- public string? default_unescape_string (string string)
- public void dsn_split (string string, string out_dsn, string out_username, string out_password)
- public Type g_type_from_string (string str)
- public unowned string g_type_to_string (Type type)
- public bool identifier_equal (string id1, string id2)
- public uint identifier_hash (string id)
- public void log_disable ()
- public void log_enable ()
- public bool log_is_enabled ()
- public bool parse_formatted_date (Date gdate, string value, DateDMY first, DateDMY second, DateDMY third, char sep)
- public Time parse_formatted_time (string value, char sep)
- public DateTime? parse_formatted_timestamp (string value, DateDMY first, DateDMY second, DateDMY third, char sep)
- public bool parse_iso8601_date (Date gdate, string value)
- public Time parse_iso8601_time (string value)
- public SqlStatement? rewrite_sql_statement_for_null_parameters (owned SqlStatement sqlst, Set @params, out bool out_modified) throws Error
- public bool rewrite_statement_for_null_parameters (Statement stmt, Set @params, out Statement? out_stmt) throws Error
- public bool rfc1738_decode (string string)
- public string? rfc1738_encode (string string)
- public Statement select_alter_select_for_empty (Statement stmt) throws Error
- public string sql_identifier_force_quotes (string str)
- public string sql_identifier_prepare_for_compare (string str)
- 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)
- public SqlOperatorType sql_operation_operator_from_string (string op)
- public unowned string sql_operation_operator_to_string (SqlOperatorType op)
- public SqlStatementType sql_statement_string_to_type (string type)
- public string sql_value_stringify (Value value)
- public Binary string_to_binary (string? str)
- public Blob string_to_blob (string str)
- public string text_to_alphanum (string text)
- public bool utility_check_data_model_v (DataModel model, Type[] types)
- public bool utility_data_model_dump_data_to_xml (DataModel model, unowned Node* parent, int[]? cols, int[]? rows, bool use_col_ids)
- public unowned string? utility_data_model_find_column_description (DataSelect model, string field_name)
- public bool utility_holder_load_attributes (Holder holder, unowned Node* node, SList<DataModel>? sources) throws Error
- public int value_compare (Value value1, Value value2)
- public Value? value_copy (Value value)
- public int value_differ (Value value1, Value value2)
- public void value_free (owned Value? value)
- public unowned Binary value_get_binary (Value value)
- public unowned Blob value_get_blob (Value value)
- public unowned GeometricPoint value_get_geometric_point (Value value)
- public unowned MetaStoreChange value_get_meta_store_change (Value value)
- public unowned Numeric value_get_numeric (Value value)
- public short value_get_short (Value value)
- public unowned Time value_get_time (Value value)
- public ushort value_get_ushort (Value value)
- public bool value_is_null (Value value)
- public bool value_is_number (Value value)
- public Value? value_new (Type type)
- public Value? value_new_binary (owned uint8 val, long size)
- public Value? value_new_blob (uint8 val, long size)
- public Value? value_new_blob_from_file (string filename)
- public Value? value_new_date_time_from_timet (time_t val)
- public Value? value_new_default (string? default_val)
- public Value? value_new_from_string (string as_string, Type type)
- public Value? value_new_from_xml (Node node)
- public Value? value_new_null ()
- public Value? value_new_time_from_timet (time_t val)
- public void value_reset_with_type (Value value, Type type)
- public void value_set_binary (Value value, Binary binary)
- public void value_set_blob (Value value, Blob blob)
- public bool value_set_from_string (Value value, string as_string, Type type)
- public bool value_set_from_value (Value value, Value from)
- public void value_set_geometric_point (Value value, GeometricPoint val)
- public void value_set_meta_store_change (Value value, MetaStoreChange change)
- public void value_set_null (Value value)
- public void value_set_numeric (Value value, Numeric val)
- public void value_set_short (Value value, short val)
- public void value_set_time (Value value, Time val)
- public void value_set_ushort (Value value, ushort val)
- public string value_stringify (Value value)
- public void value_take_binary (Value value, owned Binary binary)
- public void value_take_blob (Value value, owned Blob blob)
- public string value_to_xml_string (Value value)
- public Worker worker_new_unique (Worker location, bool allow_destroy)