ODBCConnection

ODBCConnection — allocates a connection handle.

Synopsis

class ODBCConnection ODBCHandle
{
    __stmt;
    h;
    handle;
    type;
}
    

Base Classes

ODBCHandle <-- ODBCConnection

Description

This class allocates a connection handle. It corresponds to using the value SQL_HANDLE_DBC for the HandleType of the SQLAllocHandle function.

Class Members

These functions are identical to the corresponding C or C++ functions, as noted.

AddColumn (tablename, column, type, default_val, allow_null)

corresponds to AddColumn.

AllocDescriptor ()

corresponds to AllocDescriptor.

AllocStatement ()

corresponds to SQLAllocStmt.

ClassFromColumns (symclassname, superclass, columns)

corresponds to ClassFromColumns.

ClassFromTable (symclassname, superclass, tablename)

corresponds to ClassFromTable.

ClassesFromTables (superclass, verbose?=nil)

corresponds to ClassesFromTables.

Connect (ServerName, UserName, Authentication)

corresponds to SQLConnect.

CreateTable (tablename, columns...)

corresponds to CreateTable.

Delete (row)

corresponds to Delete.

Disconnect ()

corresponds to SQLDisconnect.

DropTable (tablename)

corresponds to DropTable.

EndTran (CompletionType)

corresponds to SQLEndTran.

Error ()

corresponds to SQLError.

GetOneColumn (query_string)

corresponds to GetOneColumn.

GetOneValue (query_string)

corresponds to GetOneValue.

Insert (row)

corresponds to Insert.

MakeClass (symclassname, superclass, ivars, tablename, primary_key)

corresponds to MakeClass.

MapClassFromResponse (klass, response)

corresponds to MapClassFromResponse.

Query (query_string)

corresponds to Query.

QueryAndStore (query_string)

corresponds to QueryAndStore.

QueryToClass (klass, query_string)

corresponds to QueryToClass.

QueryToTempClass (superclass, query)

corresponds to QueryToTempClass.

ReQuery (row)

corresponds to ReQuery.

Statement ()

corresponds to Statement.

StoreResult ()

corresponds to StoreResult.

Update (row)

corresponds to Update.

(The following functions are inherited from: ODBCHandle)

GetDiagRec ()

corresponds to SQLGetDiagRec.