C++ ORM and Query Builder for PostgreSQL.
Go to file
Tomasz Sowa 6619f3ecb5
fix: correctly use a table name when using Finder::use_table_prefix(true)
We cannot use aliases in the form of "tablename"."fieldname" - now it was
changed to "tablename.fieldname".

Sample how to get the id field, assuming the table name is 'mymodel'.
mymodel = finder2.
          select(morm::Select::no_auto_generated_columns).
          use_table_prefix(true).
          raw("SELECT id AS \"mymodel.id\"").
          raw("FROM mymodel").
          raw("WHERE id = 25").
          get();

In addition, there was an error that the table name was not correctly set
for the first object in the hierarchy - it was empty, e.g. ""."field_name"
2023-07-15 03:08:02 +02:00
samples add a CSVConnector/CSVExpression classes to serialize to csv format 2023-04-12 17:20:29 +02:00
src fix: correctly use a table name when using Finder::use_table_prefix(true) 2023-07-15 03:08:02 +02:00
.editorconfig added .editorconfig file 2021-06-16 14:21:34 +02:00
.gitignore Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
LICENSE add LICENSE file 2022-07-03 11:01:14 +02:00
Makefile improve the xml serializer 2023-02-26 22:19:46 +01:00