module documentation

Undocumented

Class CursorDebugWrapper Undocumented
Class CursorWrapper Undocumented
Function format_number Format a number into a string with the requisite number of digits and decimal places.
Function names_digest Generate a 32-bit digest of a set of arguments that can be used to shorten identifying names.
Function split_identifier Split an SQL identifier into a two element tuple of (namespace, name).
Function split_tzname_delta Split a time zone name into a 3-tuple of (name, sign, offset).
Function strip_quotes Strip quotes off of quoted table names to make them safe for use in index names, sequence names, etc. For example '"USER"."TABLE"' (an Oracle naming scheme) becomes 'USER"."TABLE'.
Function truncate_name Shorten an SQL identifier to a repeatable mangled version with the given length.
Function typecast_date Undocumented
Function typecast_time Undocumented
Function typecast_timestamp Undocumented
Variable logger Undocumented
def format_number(value, max_digits, decimal_places): (source)

Format a number into a string with the requisite number of digits and decimal places.

def names_digest(*args, length): (source)

Generate a 32-bit digest of a set of arguments that can be used to shorten identifying names.

def split_identifier(identifier): (source)

Split an SQL identifier into a two element tuple of (namespace, name). The identifier could be a table, column, or sequence name might be prefixed by a namespace.

def split_tzname_delta(tzname): (source)

Split a time zone name into a 3-tuple of (name, sign, offset).

def strip_quotes(table_name): (source)

Strip quotes off of quoted table names to make them safe for use in index names, sequence names, etc. For example '"USER"."TABLE"' (an Oracle naming scheme) becomes 'USER"."TABLE'.

def truncate_name(identifier, length=None, hash_len=4): (source)

Shorten an SQL identifier to a repeatable mangled version with the given length. If a quote stripped name contains a namespace, e.g. USERNAME"."TABLE, truncate the table portion only.

def typecast_date(s): (source)

Undocumented

def typecast_time(s): (source)

Undocumented

def typecast_timestamp(s): (source)

Undocumented

Undocumented