module documentation

Undocumented

Variable logger Undocumented
Class ​Cursor​Debug​Wrapper Undocumented
Class ​Cursor​Wrapper 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
logger =

Undocumented

def format_number(value, max_digits, decimal_places):
Format a number into a string with the requisite number of digits and decimal places.
def names_digest(*args, length):
Generate a 32-bit digest of a set of arguments that can be used to shorten identifying names.
def split_identifier(identifier):

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):
Split a time zone name into a 3-tuple of (name, sign, offset).
def strip_quotes(table_name):
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):

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):

Undocumented

def typecast_time(s):

Undocumented

def typecast_timestamp(s):

Undocumented