comet.CSQL

class comet.CSQL

This section describes all functions for the comet.CSQL class.

Methods

CSQL.getServer()

Get the server name of this connection.

Returns

The server name

Return type

str

Raises

CometError – On internal error

Available

CScript

sql::server

CSQL.getUser()

Get the user name this connection was established with.

Returns

The user name

Return type

str

Raises

CometError – On internal error

Available

CScript

sql::user

CSQL.getDBName()

Get the database name this connection was established with.

Returns

The database name

Return type

str

Raises

CometError – On internal error

Available

CScript

sql::dbname

CSQL.getClient()

Get the client name this connection was established with.

Returns

The client name

Return type

str

Raises

CometError – On internal error

Available

CScript

sql::client

CSQL.getCharset()

Get the character set this connection was established with.

Returns

The character set

  • 0: System charset

  • 1: UTF-8

  • 2: Unicode 16 Bit

  • 3: Unicode 32 Bit

Return type

int

Raises

CometError – On internal error

Available

CScript

sql::charset

CSQL.createQuery()

Creates a new transaction query object for this connection.

Returns

A new query object

Return type

CQuery

Raises

CometError – On internal error

Available

CScript

sql::query