Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-12-29 | dbservice.TableAPI: cast id to int8 | Marko Kreen | |
This makes possible to use prepared plans with tapi. | |||
2011-12-29 | querybuilder: take type from last ':' | Marko Kreen | |
this allows ':' in variable name | |||
2011-12-22 | dbservice.make_record: convert list to pgarray | Marko Kreen | |
This makes the behaviour compatible with 8.3 plpython, with did not know arrays and returned text strings. More general solution would be to use urlenc arrays (same key repeats), except that not general enough - there is no transparent way to encode lists with 0 and 1 elements. So caller must always be aware whether a key is list or not. Thus no advantages over this pgarray solution and disadvantaga is incompatibility. | |||
2011-12-22 | make_pgarray(): convert python list to postgres array | Marko Kreen | |
2011-12-15 | SkyLogger: addHandler() compat method | Marko Kreen | |
2011-12-09 | londiste: replace SERIALIZABLE with REPEATABLE_READ | Marko Kreen | |
On < 9.1 they are same. On 9.1+ REPEATABLE_READ is same as old SERIALIZABLE, but SERIALIZABLE is rather heavy. | |||
2011-12-08 | skytools: seems psycopg2 isolation constants do change | Marko Kreen | |
Psycopg 2.4.2 moved them around. Stop hard-coding them, instead import from psycopg2.externsions Also have a symbol for repeatable read. | |||
2011-12-07 | DBScript: simpler removal of password info | Marko Kreen | |
PG connect strings can be quite free-form. So remove everything after 'password'. | |||
2011-12-07 | skylog: use LoggerAdapter to give .trace method | Marko Kreen | |
Replacing the default logger class seems dubious. | |||
2011-12-07 | Merge remote branch 'martino/master' | Marko Kreen | |
2011-12-07 | Merge branch 'master' of git://github.com/markokr/skytools | Marko Kreen | |
2011-12-07 | skytools.signal_pidfile: ignore empty pidfile, some cleanups | Marko Kreen | |
Empty pidfile can happen if old process failed to write it for some reason. | |||
2011-12-06 | skytools.__init__: alphabetically ordered modules / symbols | martinko | |
2011-12-06 | Merge branch 'master' of skype-git:/git/dba/skytools-3 | martinko | |
2011-12-06 | skytools.skylog: fixed SkyLogger.trace() vs funcName format attribute | martinko | |
2011-12-06 | filter potential passwords in connstr before logging it | anti.veeranna | |
2011-12-05 | reworked custom logging init | martinko | |
SkyLogger is no more installed automatically on scripting.py loading, rather exlicitly when our custom getLogger() function is called. | |||
2011-12-01 | skylog: add job_name, service_name, hostname to LogRecord | Marko Kreen | |
This makes those fields usable everywhere. As discussed in comment, no better way to do it. Also remove few per-msg gethostname() calls. | |||
2011-11-29 | skylog: record.name is not jobname anymore | Marko Kreen | |
2011-11-28 | skytools/scripting.py: added new log level TRACE that is below DEBUG level | martinko | |
Added new "debug-2" log level that is intended for finer-grained informational events than DEBUG log level. | |||
2011-11-24 | skytools.scripting: fix fileConfig on python 2.5 | Marko Kreen | |
There is no disable_existing_loggers argument so we need manually enable all loggers again. | |||
2011-11-23 | skytools.BaseScript: fix use_skylog vs. module level loggers. | Marko Kreen | |
We want to support loggers initialized on module import time, but for some reason logging.config.fileConfig() disables all existing loggers by default. Set disable_existing_loggers=False when calling to stop such behaviour. | |||
2011-11-18 | dbstruct.rx_replace: report all input in exception. | Marko Kreen | |
This helps to debug failures. | |||
2011-11-14 | skytools.scripting: datefmt support in logging | martinko | |
2011-11-14 | Merge remote-tracking branch 'intgit/master' | Marko Kreen | |
2011-11-14 | skytools.AdminScript: fix typo | Marko Kreen | |
2011-11-14 | skytools.BaseScript: .cf_defaults attribute | Marko Kreen | |
This gives simple way to add defaults | |||
2011-11-08 | config.py: resubmit lost commit | martinko | |
2011-11-08 | skytools.scripting: logging cleanup | Marko Kreen | |
- allow different log format when logging verbosely - don't assign to self.log during __init__, instead use class var This allows subclass var to override self.log | |||
2011-11-07 | skytools: make apipkg visible outside | Marko Kreen | |
Now it should be possible to re-use the module elsewhere. | |||
2011-11-04 | skytools.dedent: new function for removing indent | Marko Kreen | |
extract code from .print_ini and make usable elsewhere too. | |||
2011-11-04 | skytools.sqltools: tolerate missing installer_config | Marko Kreen | |
2011-10-16 | Add an option to split the key and value fields | Lukáš Lalinský | |
2011-10-14 | skytools.scripting: make non-skylog logging attach to root | Marko Kreen | |
use_skylog logging was already doing it. Now that simple logging does it do, using self.log is not mandatory anymore, code can use 'logging' module directly. Also make console and logfile output configurable. | |||
2011-10-04 | skytools.DBscript: set_database_defaults method | Marko Kreen | |
Mainly for simple way to set db mode across all get_database() calls. | |||
2011-09-18 | Fix bad var in plpy_applyrow | Marko Kreen | |
2011-08-24 | Merge remote-tracking branch 'martino/master' | Marko Kreen | |
2011-08-23 | scripting.py: added some aliases in BaseScript | martinko | |
stat_add -> stat_put stat_inc -> stat_increase | |||
2011-08-22 | skytools.BaseScript: fix attribute typo (cf_override) | Marko Kreen | |
2011-08-22 | config.py: added items() and has_section() methods to simplify certain usecases | martinko | |
2011-08-22 | minor typos fixed | martinko | |
2011-07-12 | sql/conflicthandler: experimental conflict handler. | Marko Kreen | |
skytools.plpy_applyrow: low-level helper module conflicthandler/merge_on_time.sql: sample time-based conflict handler | |||
2011-07-05 | safe_utf8_decode: stop using builtin 'replace', its broken | Marko Kreen | |
Default 'replace' can eat several symbols, which means it can corrupt even regular ascii. | |||
2011-07-04 | skytools.DBScript: drop connection if connect string has changed | Marko Kreen | |
.reload() happens between .work() calls, so it's safe to drop connection on first .get_database() | |||
2011-06-29 | skytools.sockutil: separate module for low-level socket stuff | Marko Kreen | |
Move set_tcp_keepalive() here, plus set_nonblocking() and set_cloexec(). | |||
2011-06-29 | Simplify utf8 sanitizer and move under skytools/ | Marko Kreen | |
This patch moves sanitizer under skytools.utf8 and makes is generally usable, also better testable. | |||
2011-06-28 | skytools/__init__: setup proper __all__ | Marko Kreen | |
2011-06-21 | parse_pgarray: more strict error checking | Marko Kreen | |
2011-06-16 | fix: table rules are incorrect after londiste3 table (re)sync | Egon Valdmees | |
2011-06-15 | sqltools.full_copy variable name fix | Egon Valdmees | |