JNP3 16/17

Dependencies:   mbed nRF24L01P

Committer:
Jan Kopa?ski
Date:
Sat Jan 07 02:12:25 2017 +0100
Revision:
16:1569130916f1
server init

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jan Kopa?ski 16:1569130916f1 1 from sqlite3 import connect
Jan Kopa?ski 16:1569130916f1 2
Jan Kopa?ski 16:1569130916f1 3
Jan Kopa?ski 16:1569130916f1 4 scheme = 'kubus.sql'
Jan Kopa?ski 16:1569130916f1 5 database = 'kubus.db'
Jan Kopa?ski 16:1569130916f1 6
Jan Kopa?ski 16:1569130916f1 7 conn = connect(database=database)
Jan Kopa?ski 16:1569130916f1 8 fd = open(scheme)
Jan Kopa?ski 16:1569130916f1 9 script = fd.read()
Jan Kopa?ski 16:1569130916f1 10 fd.close()
Jan Kopa?ski 16:1569130916f1 11 conn.executescript(script)
Jan Kopa?ski 16:1569130916f1 12 conn.close()