diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2014-07-29 11:57:01 +0200 |
---|---|---|
committer | Michele Simionato <michele.simionato@gmail.com> | 2014-07-29 11:57:01 +0200 |
commit | 807443ef3d043565a00ba475aa8d132006304b77 (patch) | |
tree | e8e2b4a22bc75da4c67c708e91185f2610eeacc7 /sqlplain/tests/sqlplain_ex.py | |
parent | 90ecdcfcdb3fb64d6f5db609a97d9c18d54652ee (diff) | |
download | micheles-master.tar.gz |
Diffstat (limited to 'sqlplain/tests/sqlplain_ex.py')
-rw-r--r-- | sqlplain/tests/sqlplain_ex.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sqlplain/tests/sqlplain_ex.py b/sqlplain/tests/sqlplain_ex.py deleted file mode 100644 index ea76b0e..0000000 --- a/sqlplain/tests/sqlplain_ex.py +++ /dev/null @@ -1,24 +0,0 @@ -from sqlplain import DB - -def test(autocommit): - db = DB('mssql://python:p1tone@192.168.0.129/srsdevbak', autocommit) - print db - print db.execute('select * from client') - print db.execute("update client set client='pippo' where 1=2") - - - db = DB('postgres://python:p1tone@localhost/rcare', autocommit) - print db - print db.execute('select * from customer') - print db.execute("update customer set client_id='pippo' where 1=2") - - db = DB('sqlite:///:memory:', autocommit) - print db - print db._raw_execute('create table prova (i integer)', (), None) - print db.execute("insert into prova values (1)") - print db.execute("select * from prova") - -if __name__ == '__main__': - test(autocommit=False) - test(autocommit=True) - |