1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| def copy_expert(self, sql, file, size=8192): """ copy_expert(sql, file, size=8192) -- Submit a user-composed COPY statement. `file` must be an open, readable file for COPY FROM or an open, writable file for COPY TO. The optional `size` argument, when specified for a COPY FROM statement, will be passed to file's read method to control the read buffer size. """ pass
def copy_from(self, file, table, sep=None, null=None, size=8192, columns=None): """ copy_from(file, table, sep='\t', null='\\N', size=8192, columns=None) -- Copy table from file. """ pass
def copy_to(self, file, table, sep=None, null=None, columns=None): """ copy_to(file, table, sep='\t', null='\\N', columns=None) -- Copy table to file. """ pass
def execute(self, query, vars=None): """ execute(query, vars=None) -- Execute query with bound vars. """ pass
|