dodotable.condition — Hello filter!¶
-
class
dodotable.condition.Ilike(cls, attribute_name, request_args)¶ SQL ILIKE 연산을 담당하는 필터
Column에 포함 가능한 필터로, 단어를 받아서 그 단어에 대한 조건을 생성합니다.>>> print(Ilike(Music, 'name', request_args)) lower(music.name) LIKE lower(:name_1)
Parameters: - cls –
- attribute_name –
- request_args –
-
class
dodotable.condition.IlikeAlias(identifier, alias_attr, request_args)¶ sqlalchemy alias 를 위한 ilike 필터.
Parameters: - identifier –
- alias_attr –
- request_args (
Mapping) –
-
class
dodotable.condition.IlikeSet(table, request_args, identifier=None)¶ 모든 ILIKE 관련 연산을 묶습니다.
Table에 포함 가능한 필터로, 해당 테이블에 있는 ILIKE 조건을 묶어서 OR 연산으로 묶습니다.>>> table = Table(AdminRole, columns=[...]) >>> table.add_filter(IlikeSet(table, request_args)) >>> print(table.query) SELECT ... FROM admin_role AS admin_role_1 ... WHERE lower(name) LIKE lower(:name_1) OR lower(authority) LIKE lower(:authority_1) ...
Parameters: - table (
dodotable.Table) – - request_args (
Mapping) – - identifier –
- table (
-
class
dodotable.condition.Order(cls, attribute_name, order=None)¶ 정렬 조건을 내보냅니다.
Parameters: - cls –
- attribute_name –
- order –
-
ASCENDANT= 'asc'¶ 오름차순
-
DESCENDANT= 'desc'¶ 내림차순
-
class
dodotable.condition.SelectFilter(cls, attribute_name, choices, request_args, default=None)¶ 여러 옵션중 하나를 선택하는 필터를 만듭니다.
Parameters: - cls –
- attribute_name –
- choices –
- request_args (
Mapping) – - default –
-
dodotable.condition.create_search_name(name)¶ HTML form의 name을 생성합니다.
Parameters: cls – Returns: