Sindbad~EG File Manager
from sqlalchemy import create_engine, MetaData, Table, insert, select,update,delete,text
from sqlalchemy.sql import and_, or_
from core import app
import json
engine = create_engine(app.config['DATABASE_URI'])
# engine = create_engine('')
class Log():
def __init__(self):
try:
self.meta = MetaData()
self.logs = Table("logs", self.meta, autoload=True, autoload_with=engine)
except Exception as e:
print(e)
def insert(self,data):
print('inside model insert log')
result = engine.execute(self.logs.insert(), data)
return result
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists