Add SQLModel core code

This commit is contained in:
Sebastián Ramírez
2021-08-24 14:41:53 +02:00
commit fcff2050e6
17 changed files with 1867 additions and 0 deletions

11
sqlmodel/sql/base.py Normal file
View File

@@ -0,0 +1,11 @@
from typing import Generic, TypeVar
from sqlalchemy.sql.base import Executable as _Executable
_T = TypeVar("_T")
class Executable(_Executable, Generic[_T]):
def __init__(self, *args, **kwargs):
self.__dict__["_exec_options"] = kwargs.pop("_exec_options", None)
super(_Executable, self).__init__(*args, **kwargs)