Module FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list
N/A table_exists N/A N/A curs table_name N/A N/A N/A 
    If table_name is a schema qualified table name and it exists it is returned,
    else if it is not schema qualified and the table name exists in the search 
    path then that schema qualified table name is returned, else None.
     N/A N/A N/A curs execute SELECT pgpartitioner.table_exists(%s) N/A table_name N/A N/A N/A curs fetchone N/A get_column_type N/A N/A curs table_name column_name N/A N/A N/A 
    If column_name exists on table_name it's SQL type is returned.  Else an
    exception is raised.
     N/A N/A N/A curs execute SELECT pgpartitioner.get_column_type(%s, %s); N/A table_name column_name N/A N/A N/A N/A curs fetchone N/A 0 N/A get_constraint_defs N/A N/A curs table_name fkeys N/A True N/A N/A 
    Returns a list of constraint definition fragments suitable for use 
    in SQL create table or alter table statements.  fkeys are not included if
    fkeys is false
     N/A N/A N/A curs execute SELECT * FROM pgpartitioner.get_table_constraint_defs(%s, %s); N/A table_name fkeys N/A N/A N/A res N/A 0 N/A res N/A N/A curs fetchall N/A get_index_defs N/A N/A curs table_name N/A N/A N/A 
    Returns a list of 2-tuples consisting of each index creation def  statement
    for any non-primary key or unique indexes on the given table and the 
    index name. 
     N/A N/A N/A curs execute SELECT * FROM pgpartitioner.get_table_index_defs(%s); N/A table_name N/A N/A N/A res N/A 0 N/A res N/A N/A curs fetchall N/A table_attributes N/A N/A curs table_name N/A N/A N/A 
    Returns a tuple of the given table's attributes
     N/A N/A N/A curs execute SELECT * FROM pgpartitioner.get_table_attributes(%s); N/A table_name N/A atts N/A tuple N/A N/A res N/A 0 N/A res N/A N/A curs fetchall N/A atts N/A normalize_date N/A N/A curs date_str fmt units diff N/A month 0 months N/A N/A 
    Takes a valid date string in any format and formats it according to fmt.
     N/A normalize_date_sql 
    SELECT to_char(date_trunc(%s, %s::timestamp + %s), %s);
     N/A N/A N/A curs execute normalize_date_sql N/A units date_str diff fmt N/A N/A N/A N/A curs fetchone N/A 0 N/A