summaryrefslogtreecommitdiff
path: root/python/skytools/sqltools.py
AgeCommit message (Collapse)Author
2012-07-24Merge branch 'master' of skype-git:/git/dba/skytools-3martinko
2012-07-05skytools.exists_view(): new functionMarko Kreen
2012-04-03skytools.sqltools: dbdict got merge supportmartinko
2012-02-10dbdict: on attribute access convert KeyError to AttributeErrorMarko Kreen
Otherwise it confuses some code (copy.deepcopy())
2011-11-04skytools.sqltools: tolerate missing installer_configMarko Kreen
2011-06-15sqltools.full_copy variable name fixEgon Valdmees
2011-05-11OCM-2279: londiste3 should translate everything to utf8, in a lossy wayEgon Valdmees
where appropriate * added argument 'encoding' to dispatcher handler * tests for invalid utf8 sequences * support for renamed table copy in dispatcher handler
2011-05-11table name and columns change support for full_copyEgon Valdmees
added support for destination table and columns with different name than source
2011-04-06Avoid direct symbol importsMarko Kreen
Always use import skytools def xx(): skytools.foo this allows maximum laziness when importing.
2010-12-03magic_insert: allow pre-quoted table nameMarko Kreen
2010-11-26magic_insert: allow shorter rowsMarko Kreen
2010-07-09Move querybuilder code into separate file and refresh with some new code.Marko Kreen
2010-06-09installer_find_file: stop searching from cwdMarko Kreen
It was fine for some testing, but not for serious usage.
2010-06-09skytools.DBObject: remove duplicated file find logicMarko Kreen
2009-11-03londiste: copy expression supportMarko Kreen
2009-10-14python/skytools: add doctest-based regtests to few non-sql functionsMarko Kreen
Seems to be better testing method than ad-hoc scripts. They will serve as examples too. Also fix few minor problems found in the process: - parse_pgarray: check if str ends with } - parse_pgarray: support NULL - quote_fqident: add 'public.' schema to idents without schema - fq_name_parts: return always list
2009-09-21sqltools: make mk_update_sql()/mk_delete_sql() use ONLYMarko Kreen
This will make urlencoded events behave same as sql events.
2009-05-04Add querybuilder into sql toolsAsko Oja
Querybulder is used to manage parametrisized queries both in plpython/dbservice stored procedures and python scripts.
2009-02-17Add skytools.exists_temp_table() to test if temp table exists.Marko Kreen
2009-02-13python/skytools updateMarko Kreen
- docstrings - some preliminary python 3.0 compat (var names, print()) - sync with 2.1-stable adminscript: - move exec_cmd function to dbscript dbstruct: - support sequnces. SERIAL columns are not automatically created, but the link beteween column and sequence is. psycopgwrapper: - drop support for psycopg1 - beginnings of quick DB-API / DictRow description. quoting: - new unquote_fqident() function, reverse of quote_fqident() - quote_statement() accepts both row and dict dbscript: - catch startup errors - use log.exception for exceptions, will result in nicer logs sqltools: - exists_sequence() _pyquoting: - fix typo in variable name
2009-01-08skytools.full_copy(): quoting, copy_expert (from 2.2)Marko Kreen
2009-01-08skytools.magic_insert: quoting, work on DictRowMarko Kreen
2008-04-17dont log so excessivelyMarko Kreen
2008-04-15more setconsumer/londiste work.Marko Kreen
simple init/event processing/copy seems to work.
2008-03-06sqltools: experimental code - dbdict, mk_*_sqlMarko Kreen
2008-02-28installer logging changes from -stableMarko Kreen
2007-12-07change db_install logger to be a callbackMarko Kreen
2007-07-25skytools: docstring shuffle, hide/remove low-level/old stuffMarko Kreen
2007-07-25split identifiers on first dot onlyMarko Kreen
2007-07-23skytools: separate psycopg specific codeMarko Kreen
2007-07-20skytools/psycopg2: allow setting row fieldsMarko Kreen
2007-07-16skytools: support for psycopg2Marko Kreen
2007-04-09actuall use new configMarko Kreen
2007-04-09remember where the installer config files were actually installedMarko Kreen
2007-04-09log full patch to file when installingMarko Kreen
2007-03-13final public releaseskytools_2_1Marko Kreen