You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kilo's QueryBuilder class provides support for programmatically constructing and executing SQL queries. For example, this code could be used to create a query that returns all pets associated with a particular owner:
The JSON annotation can be used to indicate that a table column contains JSON data. When this annotation is present, QueryBuilder will automatically translate the associated property value to and from JSON as needed. For example:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Kilo's
QueryBuilderclass provides support for programmatically constructing and executing SQL queries. For example, this code could be used to create a query that returns all pets associated with a particular owner:The query could then be executed as follows:
The
JSONannotation can be used to indicate that a table column contains JSON data. When this annotation is present,QueryBuilderwill automatically translate the associated property value to and from JSON as needed. For example:The data could be stored in a
textfield, or it could be the result of a SQL query like this:Either way, the serialization is handled entirely by
QueryBuilder– no application involvement is needed.QueryBuilderwill also automatically translate properties of typeorg.w3c.dom.Documentto and from XML. For more information, see the README.Beta Was this translation helpful? Give feedback.
All reactions