Gambas Documentation - /comp/gb.db/db

/comp/gb.db/db

# DB (gb.db)

This class represents the current connection.

The current connection is by default the first opened database. You can modify it by using the Current property.

This class is static.

Static properties | Static methods | Constants
--- | --- | ---

Returns the charset used by the current database.
Charset
Collations
Returns or sets the current connection.
Current
Databases
Sets or returns if the database component is in debugging mode.
Debug
Error
Return the handle of the default connection.
Handle
Return or set if the database charset should be ignored.
IgnoreCharset
Returns if the current connection is opened.
Opened
Tables Users Version

Start a transaction.
Begin
Close the connection.
Close
Commit a transaction.
Commit
Returns a read/write Result object used for creating records in the specified table.
Create
Delete Edit Exec Find
Format some blob data so that it can be inserted into a SQL query.
FormatBlob
Limit Open Quote
Cancel a transaction.
Rollback
Subst

This constant represents a Blob field datatype.
Blob
Represents a Boolean field datatype.
Boolean
This constant represents a Date field datatype.
Date
This constant represents a Float field datatype.
Float
This constant represents an Integer field datatype.
Integer
This constant represents a Long field datatype.
Long
This constant represents a Serial field datatype.
Serial
This constant represents a String field datatype.
String