ajsql


Data type AjPVoid

Ajax address object.

Holds a void array with additional data. The length is known and held internally.

Saves on length calculation, and allows growth in reserved memory without changing the pointer in the calling routine.

AjPVoid is implemented as a pointer to a C data structure.

Alias name(s)

Name
AjSVoid
AjOVoid

Constructor(s)

NameDescription
ajVoidNewDefault constructor
ajVoidNewResConstructor with reserved size

Destructor(s)

NameDescription
ajVoidDelDefault destructor

Cast(s)

NameDescription
ajVoidGetRetrieve a pointer from an array

Modifier(s)

NameDescription
ajVoidPutLoad a pointer array element

Attributes

NameTypeDescription
ResajuintReserved space in case of extension
LenajuintActual length used
Ptrvoid**Array of void pointers


Enum AjESqlconnectionClient

AJAX SQL Connection client library enumeration.

Alias name(s)

Name
AjOSqlconnectionClient

Enumerated value(s)

Name
ajESqlconnectionClientNULLNull
ajESqlconnectionClientMySQLMySQL client
ajESqlconnectionClientPostgreSQLPostgreSQL client


Data type AjPSqlconnection

AJAX SQL Connection.

Holds the client type and a pointer to a SQL client library-specific connection object.

Alias name(s)

Name
AjSSqlconnection
AjOSqlconnection

Attributes

NameTypeDescription
Pconnectionvoid*SQL client library-specific connection object (MYSQL*) for the MySQL client library (PGconn*) for the PostgreSQL client library
ClientAjESqlconnectionClientClient library
UseajuintUse counter


Data type AjPSqlstatement

AJAX SQL Statement.

Holds pointers to an AJAX SQL Connection and to a client library-specific result object.

Alias name(s)

Name
AjSSqlstatement
AjOSqlstatement

Attributes

NameTypeDescription
SqlconnectionAjPSqlconnectionAJAX SQL Connection.
Presultvoid*SQL client library-specific result object (MYSQL_RES*) for the MySQL client library (PGresult*) for the PostgreSQL client library
AffectedRowsajulongNumber of rows affected by non-SELECT SQL statements
SelectedRowsajulongNumber of rows selected by SELECT-like SQL statements
ColumnsajuintNumber of columns returned by SELECT-like statements
UseajuintUse counter


Data type AjPSqlrow

AJAX SQL Result Row.

Holds an AjPChar array of C-type character strings and an AjLong array of data lengths for each column data values in SQL client library-specific result objects.

Alias name(s)

Name
AjSSqlrow
AjOSqlrow

Attributes

NameTypeDescription
ValuesAjPVoidAJAX Character Array of SQL column values
LengthsAjPLongAJAX Long Integer Array of SQL column value lengths
ColumnsajuintNumber of columns per row
CurrentajuintCurrent column in column interactions


Data type AjISqlrow

AJAX SQL Row Iterator.

Allows iteration over AJAX SQL Rows of an AJAX SQL Statement.

Alias name(s)

Name
AjSSqlrowiter
AjOSqlrowiter
AjPSqlrowiter

Attributes

NameTypeDescription
SqlstatementAjPSqlstatementAJAX SQL Statement
SqlrowAjPSqlrowAJAX SQL Result Row
CurrentajulongCurrent row number