Index of the interfaces module
-
m
sqlapi.interfaces
...
-
C
IPlugin
...
-
a
module
...
-
a
movethread
...
-
a
threadsafety
...
-
a
auto_increment
...
-
a
pool
...
-
f
activate
...
- Called the first time this plugin is loaded. Will not be
called twice.
-
f
parse_uri
...
- Return a dictionary representation of the URI, as documented
in sqlapi.uri.parse_uri
-
f
guess_sequence_name
...
- Guess the name of the sequence for the given table and id name.
-
f
tables
...
- Return a list of table names, using the given cursor object
-
f
__init__
...
- Create an instance of the plugin, bound to connection
parameters and options.
-
f
sql_quote_symbol
...
- This is a generic implementation of quoting that applies to
tables and columns (if those methods are overridden).
-
f
sql_column_create
...
- Returns one line/column as you'd expect in a CREATE TABLE
statement. name is the column name. type is a
standard SQL string representing the type (e.g., 'INT').
params is a dictionary of arguments. default is the
caller's guess at the result.
-
f
activate_exceptions
...
- Called after activate(), and makes sure that the
exceptions raised by the database inherit from the exceptions
in sqlapi.exceptions
-
f
raw_connection
...
- Return the DB-API connection.
-
f
table_exists
...
- Does tablename exist in the database?
-
f
param_mark_generator
...
- Yield a sequence of (param_mark, param_name). If positional
parameters are used, then return None for param_name,
otherwise return a name used in a dictionary.
-
f
sql_literal
...
- This will only be called rendering the expression to string,
which shouldn't happen except for logging or debugging output
(it should not be sent to the database).
-
f
sql_postfix_operator
...
- Takes an operator (-like thing), like 'IS NULL'
-
f
get_sequence_nextval
...
- Get the next value for the named sequence
-
f
sql_operator
...
- This takes as an argument a string operator, which should be
the ANSI SQL operator. It then returns the operator to
actually be used.
-
f
sql_literal_param
...
- This can be used to convert a Python object to an object
that is accepted as a parameter by the database driver.
-
f
sql_table
...
- This returns a table name with any necessary quoting for a
database.
-
f
sql_function
...
- Takes a function name, like 'COUNT'
-
f
sql_unary_operator
...
- This takes a unary operator, like - meaning negation
-
f
sql_column
...
- This returns a column name with any necessary quoting for a
database.