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

Better handle data types in SQLite3 #16

Open
wbyoung opened this issue May 14, 2015 · 0 comments
Open

Better handle data types in SQLite3 #16

wbyoung opened this issue May 14, 2015 · 0 comments

Comments

@wbyoung
Copy link
Owner

wbyoung commented May 14, 2015

It would be nice if the SQLite adapter would better handle types as they were written to and read from the database. Types are being automatically transformed by node-sqlite3 when written, but not when read. Specifically, the following would probably be good to map to JS types when reading:

  • bool
  • time
  • date
  • datetime
  • timestamp
  • decimal

If we handle type transformation, we should consider handling the transformations before they're written to the database as well rather than letting node-sqlite3 handle it.

This depends on TryGhost/node-sqlite3#451 being accepted.

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