Files
plac/doc/example7_.py
T
2010-09-06 01:32:36 -04:00

12 lines
287 B
Python

# example7_.py
from datetime import datetime
def main(dsn: "Database dsn", *scripts: "SQL scripts"):
"Run the given scripts on the database"
for script in scripts:
print('executing %s' % script)
# ...
if __name__ == '__main__':
import plac; plac.call(main)