15 lines
342 B
Python
15 lines
342 B
Python
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from app.database import engine
|
|
|
|
|
|
class BaseDAO:
|
|
model = None
|
|
|
|
def __init__(self, session: AsyncSession):
|
|
self.session = session
|
|
|
|
@staticmethod
|
|
def check_query_compile(query):
|
|
print(query.compile(engine, compile_kwargs={"literal_binds": True})) # Проверка SQL запроса
|
|
|