initial creation

This commit is contained in:
2025-05-20 11:57:43 -04:00
commit c98b612926
8447 changed files with 1862526 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/python3
import sys
import os
import sqlite3
if len(sys.argv) > 1:
db = sys.argv[1]
else:
print("Please specify database")
exit()
myconn = sqlite3.connect(db)
cu = myconn.cursor()
with open('populate_potus.sql') as pop_in:
sql = pop_in.read()
cu.executescript(sql)
myconn.commit()
cu.close()
myconn.close()