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

Custom type representation #8

Open
tantaman opened this issue Jul 14, 2023 · 1 comment
Open

Custom type representation #8

tantaman opened this issue Jul 14, 2023 · 1 comment

Comments

@tantaman
Copy link
Contributor

These should be Str_of or Blob_of.

Execution decorators can deserialize the result and lift T?

@tantaman
Copy link
Contributor Author

tantaman commented Jul 23, 2023

SQLite lets users declare custom types in their create table statements.

CREATE TABLE foo (
  id TEXT PRIMARY KEY,
  b MyCustomType,
  c MyOtherCustomType
);

We could parse these out and map them to actual typescript types. Doing this would require some runtime layer to convert columns to the correct types.

Python bindings have explored this: https://docs.python.org/3/library/sqlite3.html#sqlite3-converters

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