|
|
@ -139,7 +139,11 @@ def _test(): |
|
|
|
test = Db(u'postgres') |
|
|
|
print test.db_list() |
|
|
|
print test.usr_list() |
|
|
|
print test.db_info['encoding'], test.info['collation'], test.info['ctype'] |
|
|
|
print test.db_info['encoding'], test.db_info['collation'], test.db_info['ctype'] |
|
|
|
print test.db_info['encoding'], test.db_info['collation'], test.db_info['ctype'] |
|
|
|
print test.db_info['encoding'], test.db_info['collation'], test.db_info['ctype'] |
|
|
|
print test.db_info['encoding'], test.db_info['collation'], test.db_info['ctype'] |
|
|
|
|
|
|
|
print test.sanitize("aaaa-fgdg?sd/!_fb*gs'h;s'hdghj.dn ") |
|
|
|
if __name__ == '__main__': |
|
|
|
_test() |
|
|
|