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
Computed columns and extras like COLLATE #12
Comments
about computed columns: |
if you want to select value and make some actions in the select you just need to provide projection to CP.query Example:
|
if you want to define this expression in databse query you can use RawQuery |
also i have a plugin for my library: https://github.com/hamsterksu/annotatedsql-projection-plugin Example:
|
ok, plugin, just delete this issue but still it will be good to point the projection plugin on main page https://github.com/hamsterksu/Android-AnnotatedSQL |
in this demo app - https://github.com/hamsterksu/annotatedsql_demo |
what about extras ? CREATE TABLE .... COLUMN1 TEXT COLLATE LOCALIZED |
you can use default attribut of Column annotation value of default attirbute will be appended after column type |
there is no default attribute at this moment |
sorry, my misstake
but it will not work :( lib generates sql like
I will add new attribute collate to the @column. thanks, |
one another comment about View and query w/o mapping:
i did it to prevent ambiguous column error |
yeah, i saw that when i was analyzing generated code :) anyway nice library/generator |
"extra" attribute was added. version 1.10.3 |
what about computed columns ... i know we have a views and it is a lots of works since you are using projection parameter from CP.query as columns in db.query without mapper... take a look at my(runtime) generator documentation and search for computed https://selvinlistsyncsample.codeplex.com/documentation ...(also you can add extras to the Column like Column.COLLATE) ...
The text was updated successfully, but these errors were encountered: