mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-09 11:12:28 +08:00
refactor(backend): optimize usage service and database helpers
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
数据库方言兼容性辅助函数
|
||||
"""
|
||||
|
||||
from typing import Any
|
||||
|
||||
from sqlalchemy import func
|
||||
from sqlalchemy.sql.elements import ClauseElement
|
||||
|
||||
|
||||
def date_trunc_portable(dialect_name: str, interval: str, column) -> ClauseElement:
|
||||
def date_trunc_portable(dialect_name: str, interval: str, column: Any) -> Any:
|
||||
"""
|
||||
跨数据库的日期截断函数
|
||||
|
||||
|
||||
Reference in New Issue
Block a user