IoT - Kubus
/
Kubus
JNP3 16/17
server/database_setup.py
- Committer:
- Jan Kopa?ski
- Date:
- 2017-01-07
- Revision:
- 16:1569130916f1
File content as of revision 16:1569130916f1:
from sqlite3 import connect scheme = 'kubus.sql' database = 'kubus.db' conn = connect(database=database) fd = open(scheme) script = fd.read() fd.close() conn.executescript(script) conn.close()