Create Database abstract class and make a sqlite example for it

pull/1/head
Peng_Lx 2 years ago
parent ec3f1b1ef7
commit 2f18a343d8

@ -0,0 +1,3 @@
class Database(object):
def connection(self):
pass

@ -0,0 +1,10 @@
import database
import sqlite3
class DatabaseSQLite(database.Database):
conn = sqlite3.connect
def connection(self):
self.conn = sqlite3.connect("../../../data/lib_manager.db")
Loading…
Cancel
Save