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

How to use vector, array double with QxOrm #111

Open
hda1010 opened this issue Oct 5, 2023 · 1 comment
Open

How to use vector, array double with QxOrm #111

hda1010 opened this issue Oct 5, 2023 · 1 comment

Comments

@hda1010
Copy link

hda1010 commented Oct 5, 2023

Hello,

How to create properties double array with QxEntityEditor. I try define something like type double and collection std::vector. Export project to C++ is exactly. Export SQL create my column properties "double"? not have "precision[]" , when i insert value vector to table library insert value address of vector. So, database can't understand it.
Are library don't support insert with vector or array? Then, I replace properties of column to QString and convert data from vector to QString and it working. When i fetch data from table i must convert from QString to vector and use it? Does it affect application performance?

Thanks!!

@QxOrm
Copy link
Owner

QxOrm commented Oct 6, 2023

Hello,
In QxEntityEditor application, go to the menu "Tools >> Export to DDL SQL script file (settings)", then you can define a mapping between property type <-> SQL Type.
This is explained in the documentation here : https://www.qxorm.com/qxorm_en/manual_qxee.html#ddl_export_settings

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

2 participants