Utilities

Utility functions

source

execute

 execute (obj, **kwargs)

Call the exec method of obj if it exists, otherwise return the string representation of obj


source

to_sql

 to_sql (l)

source

quote_symbol

 quote_symbol (quote)

generate quote symbol to use for tables and columns

l = [23, 42]
test_eq(to_sql(l), '(23, 42)')
l = ['category1', 'category2']
test_eq(to_sql(l), "('category1', 'category2')")

source

delegates

 delegates (to)

Decorator: replace func name, signature and docstring with to’s.