diff options
Diffstat (limited to 'python/londiste/handler.py')
-rw-r--r-- | python/londiste/handler.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/python/londiste/handler.py b/python/londiste/handler.py index 7477675f..a0c72b07 100644 --- a/python/londiste/handler.py +++ b/python/londiste/handler.py @@ -99,12 +99,13 @@ class BaseHandler: """Called when batch finishes.""" pass - def prepare_copy(self, expr_list, dst_curs): - """Can change COPY behaviour. - - Returns new expr. + def real_copy(self, tablename, src_curs, dst_curs, column_list, cond_list): + """do actual table copy and return tuple with number of bytes and rows + copyed """ - pass + condition = ' and '.join(cond_list) + return skytools.full_copy(tablename, src_curs, dst_curs, column_list, + condition) class TableHandler(BaseHandler): """Default Londiste handler, inserts events into tables with plain SQL.""" |