ソースを参照

feat(minor): Add DateFormat function util for qb

version-14
Gavin D'souza 3年前
コミット
71d3f1c0d1
1個のファイルの変更4行の追加0行の削除
  1. +4
    -0
      frappe/query_builder/functions.py

+ 4
- 0
frappe/query_builder/functions.py ファイルの表示

@@ -43,6 +43,10 @@ CombineDatetime = ImportMapper(
}
)

DateFormat = ImportMapper({
db_type_is.MARIADB: CustomFunction("DATE_FORMAT", ["date", "format"]),
db_type_is.POSTGRES: ToChar,
})

class Cast_(Function):
def __init__(self, value, as_type, alias=None):


読み込み中…
キャンセル
保存