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
creating database with REAL array column #1057
Comments
not sure that you can but type is actually isn't important in SQLite. You can insert any type of data in |
Thanks for the answer! |
it depends on how you want to do it in raw SQLite. There is plenty of ways of doing it. How would you do it in raw SQLite? |
I'm using pony ORM in python to create db containing for example a column called "rotation" holding a vector with the following data |
you need to understand how pony ORM inserts rotation vector and implement the same way of extracting data. Good news: |
Big like on the custom type feature Would you recommend the custom type struct to be
? |
why not. It is the easiest way of doing it. Your main goal here is to understand how data is serialized by pony ORM and make symmetric deserialization of |
Amazing! and I was even able to load a database created by sqlite_orm c++ into another orm called pony in python
|
@crabiner ok good for you. Can we close this issue? |
Yes thanks! |
I have a database created using
CREATE TABLE "TestRealArray" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT, "real_array" REAL[] NOT NULL )
I can view the database using "DB Browser for SQLite" and the type of the column is shown as
REAL []
how can I create such a columnt using sqlite_orm?
The text was updated successfully, but these errors were encountered: