Skip to content

No support for detect_types #26

Description

@jameskirsop

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions