View test_uuid_db.py
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
#!/usr/bin/env python | |
import argparse | |
from contextlib import contextmanager | |
import datetime | |
import os | |
import time | |
import uuid | |
from sqlalchemy import create_engine, TypeDecorator, CHAR, MetaData, Table, Column, BigInteger, DateTime, Integer |
View test_cx_ora_ret.py
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
#!/usr/bin/env python3 | |
import cx_Oracle | |
def main(): | |
db = cx_Oracle.connect(dsn="gen3_cred_salnikov") | |
cur = db.cursor() | |
data = [dict(val1=1, val2=10), |
View test_returning.py
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
#!/usr/bin/env python3 | |
import argparse | |
from sqlalchemy import create_engine, event, MetaData, Table, Column, Sequence, Integer, String | |
shortcuts = {"oracle": "oracle+cx_oracle://@gen3_cred_salnikov", | |
"sqlite": "sqlite:///test.db", | |
"postgres": "postgresql://"} |