This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""A tool for saving files to and from a postgresql db. | |
""" | |
import os | |
import sys | |
import argparse | |
import psycopg2 | |
db_conn_str = "postgresql://username:password@localhost:5432/dbname" | |
create_table_stm = """ | |
CREATE TABLE files ( |