|
|
|
|
|
|
|
|
_connectData(self,
names=['user', 'password', 'host', 'port', 'database']) |
source code
|
|
|
|
|
|
|
reopen(self)
Returns True if the database backend was reopened or a
reconnection was required |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
transaction(self,
name=None)
start transaction [ named point ] |
source code
|
|
|
|
rollback(self,
name=None)
rollback [ to transaction point ] |
source code
|
|
|
|
| createTrigger(self,
table,
when,
onAction,
sql) |
source code
|
|
|
|
|
|
|
| createIndex(self,
table,
name,
columns,
unique=False,
check=True) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| renameColumn(self,
table,
oldName,
newName) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use(self,
dbName,
**kwargs)
Connects to a new database using the same login credentials and
database host. |
source code
|
|
|
|
| bulkload(self,
tableName,
rows,
columnNames,
start_transaction=True) |
source code
|
|
|
|
| addForeignKey(self,
table,
column,
refTable,
refColumn,
cascade=False,
name=None) |
source code
|
|
|
|
| dropForeignKey(self,
table,
column=None,
name=None) |
source code
|
|
|
|
| setAutoIncrement(self,
table,
column,
value) |
source code
|
|