diff options
Diffstat (limited to 'tests/test.py')
-rw-r--r-- | tests/test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test.py b/tests/test.py new file mode 100644 index 0000000..559946a --- /dev/null +++ b/tests/test.py @@ -0,0 +1,8 @@ +from pysqlcipher import dbapi2 as sqlite +conn = sqlite.connect('test.db') +c = conn.cursor() +c.execute("PRAGMA key='testaverylongpasswordisthisokey'") +c.execute("create table stocks (date text, trans text, symbol text, qty real, price real)") +c.execute("""insert into stocks values ('2006-01-05','BUY','RHAT',100,35.14)""") +conn.commit() +c.close() |