robottas/create_queue_db.py

12 lines
297 B
Python
Raw Normal View History

import sqlite3
if __name__ == '__main__':
con = sqlite3.connect('messages.db')
cur = con.cursor()
#cur.execute("""drop table messages""")
cur.execute("""create table messages( id integer primary key, message );""")
con.commit()
cur.close()
con.close()