Home |All Classes |Grouped Classes |Index |Search

Class CL_DBConnection

Database connection. More...

Derived from:

None

Derived by:

CL_MySQLConnection, CL_SqliteConnection

Group:

System (Database)

#include <ClanLib/database.h>

Class Members:

Construction:

CL_DBConnection

Constructs a database connection.


Attributes:

is_row

Returns true if current execution step resulted in a row.

get_last_insert_rowid

Returns the 'rowid' for the last inserted record.

get_columns

Returns the number of columns for the current row.

get_name

Returns the name of a column index.

get_index

Returns the column index for a given column name.

get_decltype

Get declaration type for column.

get_blob

Get BLOB object for column.

get_blob_raw

Get BLOB object for column.

get_blob_size

Get BLOB size for column.

get_double

Get double value for column.

get_int

Get integer value for column.

get_text

Get text value for column.

operator[]

Get value for column.


Operations:

create_command

Create database command.

execute

Begin execution of database command.

execute_non_query

Execute database command and returns the count of rows returned.

next_row

Retrieve next row for currently executed command.

finish

Complete database command execution.