You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
data-transport/transport/disk.py

188 lines
4.9 KiB
Python

import os
i = 1
"""
class SQLiteWriter(DiskWriter) :
def __init__(self,**args):
"""
:path
:fields json|csv
"""
DiskWriter.__init__(self,**args)
self.table = args['table']
self.conn = sqlite3.connect(self.path,isolation_level=None)
self.conn.row_factory = sqlite3.Row
self.fields = args['fields'] if 'fields' in args else []