How to get sqlalchemy to store datetime as julianday in sqlite?

I don't like how SQLAlchemy handles datetime values ​​with sqlite databases. It saves values ​​in a simple string format. At the same time, sqlite recommends using julianday to store date and time values.

Is there an easy way to change the behavior of SQLAlchemy?

PS. Should I worry about this? Maybe no one is dealing with julianday just because he is not needed?

+3
source share
1 answer

SQLAlchemy ; SQLite . , ; Sqlite , , . SQLAlchemy python: SQLAlchemy:

SQLite DATE, TIME DATETIME, pysqlite Python SQLite . SQLAlchemys DateTime SQlite. - SLDateTime, SLDate SLTime. ISO , . "libc" , .

, . , ? ?

+4

Source: https://habr.com/ru/post/1717003/


All Articles