Add portal database layer
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import sqlite3
|
||||
from pathlib import Path
|
||||
|
||||
DB_FILE = Path("/opt/appfactory/data/appfactory/appfactory.db")
|
||||
|
||||
|
||||
def get_connection():
|
||||
con = sqlite3.connect(DB_FILE)
|
||||
con.row_factory = sqlite3.Row
|
||||
return con
|
||||
Reference in New Issue
Block a user