diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-01-15 12:18:40 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-01-15 12:18:40 -0500 |
commit | ca2123992ceeb2ae1b5fc4848fdf443248dde55a (patch) | |
tree | 5bc26248a096c8e334756c1f53c0d3a8690cdbe8 /scilo/database.py | |
parent | 9bd908ccb75d145a134e10b5320585e28703275d (diff) | |
download | scilo-ca2123992ceeb2ae1b5fc4848fdf443248dde55a.tar.gz |
Initial commit
Diffstat (limited to 'scilo/database.py')
-rw-r--r-- | scilo/database.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scilo/database.py b/scilo/database.py new file mode 100644 index 0000000..449a1d9 --- /dev/null +++ b/scilo/database.py @@ -0,0 +1,30 @@ +''' +scilo - A scientific workflow and efficiency library +Copyright (C) 2012 Joseph Hunkeler <jhunkeler@gmail.com> + +This file is part of scilo. + +scilo is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +scilo is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with scilo. If not, see <http://www.gnu.org/licenses/>. +''' +import sqlite3 +class s3: + def __init__(self, database): + self.connection = None + self.cursor = None + try: + self.connection = sqlite3.connect(database) + self.cursor = self.connection.cursor() + except: + raise +
\ No newline at end of file |