Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for detect_types #26

Open
jameskirsop opened this issue Jun 19, 2020 · 0 comments
Open

No support for detect_types #26

jameskirsop opened this issue Jun 19, 2020 · 0 comments

Comments

@jameskirsop
Copy link

For some time, the sqlite module for Python3 has supported retrieving datetime fields from sqlite as datetime.datetime python objects.

If I do a call via a function direct to the database using the native sqlite module I am returned datetime.datetime objects.

If I do a call to the same function as part of a bottle view via bottle-sqlite, I'm returned strings in the format %Y-%m-%d %H:%M:%S.

It would be ideal if this module returned python datetime() rather than str(). This issue means that I currently have to have two near-identical functions - one that handles the string type and the other that handles the correct type.

@jameskirsop jameskirsop changed the title No support for datetime types No support for detect_types Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant