mirror of
https://github.com/Xevion/postgres-test.git
synced 2025-12-06 07:15:47 -06:00
16 lines
445 B
Python
16 lines
445 B
Python
from psycopg2 import connect
|
|
from src.seed import main
|
|
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
logging.basicConfig(level=logging.ERROR)
|
|
logger.setLevel(logging.DEBUG)
|
|
|
|
if __name__ == '__main__':
|
|
conn = connect(dbname='railway', user='postgres', password='8h9hxh5YeBwfqTCrxQQb',
|
|
host='containers-us-west-174.railway.app', port='7238')
|
|
logger.info('Connected to database.')
|
|
|
|
main(conn, 250, 1000, 500)
|