From ca2123992ceeb2ae1b5fc4848fdf443248dde55a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 15 Jan 2013 12:18:40 -0500 Subject: Initial commit --- scilo/database.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 scilo/database.py (limited to 'scilo/database.py') 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 + +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 . +''' +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 -- cgit