SQLAlchemy 0.4 Documentation

Multiple Pages | One Page
Version: 0.4 Last Updated: 08/16/07 11:15:18

module sqlalchemy.databases.oracle

Module Functions

def descriptor()

class OracleBinary(Binary)

def bind_processor(self, dialect)
def get_col_spec(self)
def get_dbapi_type(self, dbapi)
def result_processor(self, dialect)
back to section top

class OracleBoolean(Boolean)

def bind_processor(self, dialect)
def get_col_spec(self)
def result_processor(self, dialect)
back to section top

class OracleChar(CHAR)

def get_col_spec(self)
back to section top

class OracleCompiler(ANSICompiler)

Oracle compiler modifies the lexical structure of Select statements to work under non-ANSI configured Oracle databases, if the use_ansi flag is False.

def __init__(self, *args, **kwargs)

Construct a new OracleCompiler.

def apply_function_parens(self, func)
def default_from(self)

Called when a SELECT statement has no froms, and no FROM clause is to be appended.

The Oracle compiler tacks a "FROM DUAL" to the statement.

def for_update_clause(self, select)
def get_whereclause(self, f)
def limit_clause(self, select)
def uses_sequences_for_inserts(self)
def visit_alias(self, alias, asfrom=False, **kwargs)

Oracle doesn't like FROM table AS alias. Is the AS standard SQL??

def visit_insert(self, insert)

INSERT s are required to have the primary keys be explicitly present.

Mapper will by default not put them in the insert statement to comply with autoincrement fields that require they not be present. so, put them all in for all primary key columns.

def visit_join(self, join, **kwargs)
def visit_outer_join_column(self, vc)
def visit_select(self, select, **kwargs)

Look for LIMIT and OFFSET in a select statement, and if so tries to wrap it in a subquery with row_number() criterion.

back to section top

class OracleDate(Date)

def bind_processor(self, dialect)
def get_col_spec(self)
def result_processor(self, dialect)
back to section top

class OracleDateTime(DateTime)

def get_col_spec(self)
def result_processor(self, dialect)
back to section top

class OracleDefaultRunner(ANSIDefaultRunner)

def exec_default_sql(self, default)
def visit_sequence(self, seq)
back to section top

class OracleDialect(ANSIDialect)

def __init__(self, use_ansi=True, auto_setinputsizes=True, auto_convert_lobs=True, threaded=True, allow_twophase=True, **kwargs)

Construct a new OracleDialect.

def compiler(self, statement, bindparams, **kwargs)
def create_connect_args(self, url)
def create_execution_context(self, *args, **kwargs)
def create_xid(self)

create a two-phase transaction ID.

this id will be passed to do_begin_twophase(), do_rollback_twophase(), do_commit_twophase(). its format is unspecified.

def dbapi(cls)
def dbapi_type_map(self)
def defaultrunner(self, connection, **kwargs)
def do_begin_twophase(self, connection, xid)
def do_commit_twophase(self, connection, xid, is_prepared=True, recover=False)
def do_executemany(self, c, statement, parameters, context=None)
def do_prepare_twophase(self, connection, xid)
def do_recover_twophase(self, connection)
def do_release_savepoint(self, connection, name)
def do_rollback_twophase(self, connection, xid, is_prepared=True, recover=False)
def has_sequence(self, connection, sequence_name)
def has_table(self, connection, table_name, schema=None)
def max_identifier_length(self)
def oid_column_name(self, column)
def preparer(self)
def reflecttable(self, connection, table, include_columns)
def schemadropper(self, *args, **kwargs)
def schemagenerator(self, *args, **kwargs)
def supports_unicode_statements(self)

indicate whether the DBAPI can receive SQL statements as Python unicode strings

def table_names(self, connection, schema)
def type_descriptor(self, typeobj)
back to section top

class OracleExecutionContext(DefaultExecutionContext)

def get_result_proxy(self)
def pre_exec(self)
back to section top

class OracleIdentifierPreparer(ANSIIdentifierPreparer)

def format_savepoint(self, savepoint)
back to section top

class OracleInteger(Integer)

def get_col_spec(self)
back to section top

class OracleNumeric(Numeric)

def get_col_spec(self)
back to section top

class OracleRaw(Binary)

def get_col_spec(self)
back to section top

class OracleSchemaDropper(ANSISchemaDropper)

def visit_sequence(self, sequence)
back to section top

class OracleSchemaGenerator(ANSISchemaGenerator)

def get_column_specification(self, column, **kwargs)
def visit_sequence(self, sequence)
back to section top

class OracleSmallInteger(SmallInteger)

def get_col_spec(self)
back to section top

class OracleString(String)

def get_col_spec(self)
back to section top

class OracleText(TEXT)

def get_col_spec(self)
def get_dbapi_type(self, dbapi)
def result_processor(self, dialect)
back to section top

class OracleTimestamp(TIMESTAMP)

def get_col_spec(self)
def get_dbapi_type(self, dialect)
def result_processor(self, dialect)
back to section top
Up: API Documentation | Previous: module sqlalchemy.databases.mysql | Next: module sqlalchemy.databases.mssql