rewrite: Update data ORM.

Fix parsing bug in Update Query.
Fix parsing bug in Insert Query.

Add mapping interface to Model.
Implement OrderMixin, with ORDER and NULLS Enums.
Add `result` field to Query.
This commit is contained in:
2022-11-07 16:04:02 +02:00
parent 322f519640
commit 872e5fd71f
4 changed files with 49 additions and 13 deletions

View File

@@ -115,7 +115,7 @@ class Column(ColumnExpr, Generic[T]):
self.expr = sql.Identifier(owner._tablename_, self.name)
@overload
def __get__(self: 'Column[T]', obj: None, objtype: None) -> 'Column[T]':
def __get__(self: 'Column[T]', obj: None, objtype: "None | Type['RowModel']") -> 'Column[T]':
...
@overload