rewrite: Tasklist module.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from .conditions import Condition, condition
|
||||
from .conditions import Condition, condition, NULL
|
||||
from .database import Database
|
||||
from .models import RowModel, RowTable, WeakCache
|
||||
from .table import Table
|
||||
@@ -6,4 +6,4 @@ from .base import Expression, RawExpr
|
||||
from .columns import ColumnExpr, Column, Integer, String
|
||||
from .registry import Registry, AttachableClass, Attachable
|
||||
from .adapted import RegisterEnum
|
||||
from .queries import ORDER, NULLS
|
||||
from .queries import ORDER, NULLS, JOINTYPE
|
||||
|
||||
@@ -12,6 +12,8 @@ A Condition is a "logical" database expression, intended for use in Where statem
|
||||
Conditions support bitwise logical operators ~, &, |, each producing another Condition.
|
||||
"""
|
||||
|
||||
NULL = None
|
||||
|
||||
|
||||
class Joiner(Enum):
|
||||
EQUALS = ('=', '!=')
|
||||
|
||||
@@ -173,6 +173,10 @@ class RowModel:
|
||||
|
||||
return obj
|
||||
|
||||
@classmethod
|
||||
def as_tuple(cls):
|
||||
return (cls.table.identifier, ())
|
||||
|
||||
def __init__(self, data):
|
||||
self.data = data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user