summaryrefslogtreecommitdiff
path: root/python/skytools/parsing.py
AgeCommit message (Collapse)Author
2013-04-17parse_pgarray: allow NoneMarko Kreen
2013-03-01Parse & merge Postgres connect stringsMarko Kreen
2012-07-03sql_tokenizer: allow idents starting with underscoreMarko Kreen
2012-02-17added support for sizes specified in human readable formatmartinko
Config options that hold size in bytes can now be specified in human readable format. Examples: 1, 2 B, 3K, 4 MB
2011-11-04skytools.dedent: new function for removing indentMarko Kreen
extract code from .print_ini and make usable elsewhere too.
2011-10-16Add an option to split the key and value fieldsLukáš Lalinský
2011-06-21parse_pgarray: more strict error checkingMarko Kreen
2011-04-06Avoid direct symbol importsMarko Kreen
Always use import skytools def xx(): skytools.foo this allows maximum laziness when importing.
2010-12-08skytools: parse_acl() func for postgres ACL parsingMarko Kreen
2010-12-06sql_tokenize: various improvementsMarko Kreen
- drop the use_qident param, wrong place for it - support multi-symbol operators - support >2 parts in names - drop the magic escaping in pynew,pyold. it does not make sense - let all unknown symbols count as error
2010-12-03sql_tokenizer: options to returns quoted idents separatelyMarko Kreen
2010-11-25skytools.sql_tokenizer: optionally return token positionMarko Kreen
2010-11-25skytools.sql_tokenizer: support fully-qualified namesMarko Kreen
It's easier to merge name parts here than to do it in upper layers. The merging does not support some crazier parts of sql syntax like comments between name parts, so it defaults to off.
2010-07-20skytools: export parse_sqltriga_sqlMarko Kreen
2010-07-09skytools.parse_sqltriga_sql(): extract PK field namesMarko Kreen
2010-03-12skytools.parse_pgarray(): ignore dimension prefixMarko 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-03-10parsing.py: export sql_tokenizer, tag errorsMarko 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
2008-04-22parse_logtriga_sql - epydoc complained on bad docstringMarko Kreen
2008-03-11Fix bugs in previous commit.Marko Kreen
2008-03-11new tokenizer that handles quotes properly, use it everywhereMarko Kreen
2008-02-28bring new quoting & parsing code to headMarko Kreen