sqlobject.sybase.sybaseconnection module

class sqlobject.sybase.sybaseconnection.SybaseConnection(db, user, password='', host='localhost', port=None, locking=1, **kw)[source]

Bases: sqlobject.dbconnection.DBAPI

HAS_IDENTITY = "\n SELECT col.name, col.status, obj.name\n FROM syscolumns col\n JOIN sysobjects obj\n ON obj.id = col.id\n WHERE obj.name = '%s'\n AND (col.status & 0x80) = 0x80\n "
NumericType = None
SHOW_COLUMNS = "SELECT COLUMN_NAME, DATA_TYPE, IS_NULLABLE, COLUMN_DEFAULT FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '%s'"
SHOW_TABLES = "SELECT name FROM sysobjects WHERE type='U'"
addColumn(tableName, column)[source]
columnsFromSchema(tableName, soClass)[source]
createColumn(soClass, col)[source]
createIDColumn(soClass)[source]
createIndexSQL(soClass, index)[source]
createReferenceConstraint(soClass, col)[source]
dbName = 'sybase'
delColumn(sqlmeta, column)[source]
guessClass(t)[source]
insert_id(conn)[source]

Sybase adapter/cursor does not support the insert_id method.

joinSQLType(join)[source]
makeConnection()[source]
schemes = ['sybase']
supportTransactions = False
tableExists(tableName)[source]