morm/src
Tomasz Sowa 133a45c84b Added flag has_primary_key_set to Model
Now we know whether the primary key is defined or not
and we do not allow to make update/remove if the key is not defined.

And when doing insert/update we can put NULL if child models don't have
the primary key set (fields with has_foreign_key set to true).

Now in after_select() we should also set has_primary_key_set flag
or just call get_last_sequence_for_primary_key instead of get_last_sequence.

fixed: added prefix +00 when serializing PT::Date to PostgreSQL (time zone)
(for a column with a time zone there was a wrong value saved)
2021-03-09 18:10:34 +01:00
..
Makefile start creating a new project: Micro ORM 2018-03-13 22:22:17 +00:00
Makefile.dep removed: doc functionality (generating documentation from a model) 2019-09-18 15:55:42 +00:00
Makefile.o.dep removed: doc functionality (generating documentation from a model) 2019-09-18 15:55:42 +00:00
baseexpression.cpp Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
baseexpression.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
clearer.cpp added: a new class Clearer with clear_value() methods moved from DbConnector 2018-07-05 11:15:16 +00:00
clearer.h added: a new class Clearer with clear_value() methods moved from DbConnector 2018-07-05 11:15:16 +00:00
cursor.h added get_vector() methods to Finder and Cursor 2021-02-23 16:55:28 +01:00
cursorhelper.h fixed: get_value_by_field_name() is able to correctly take values when 2019-09-17 17:55:39 +00:00
dbconnector.cpp start adding support for inserting child models 2019-08-21 17:42:50 +00:00
dbconnector.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
dbexpression.cpp fixed: incorrect query was created when using neq() method with finder - there was no and or or conjunction 2021-02-23 16:51:43 +01:00
dbexpression.h added BaseExpression::is_long_field_name() 2019-05-31 18:28:09 +00:00
fieldvaluehelper.h fixed: a parent key was not properly set to simple childs (insert statements) 2019-09-24 17:08:45 +00:00
finder.h added get_vector() methods to Finder and Cursor 2021-02-23 16:55:28 +01:00
finderhelper.h added BaseExpression::is_long_field_name() 2019-05-31 18:28:09 +00:00
flatconnector.cpp added BaseExpression::is_long_field_name() 2019-05-31 18:28:09 +00:00
flatconnector.h Model and BaseExpression: changed the template taking a container to std::list 2018-07-05 09:51:26 +00:00
flatexpression.cpp PT::Date is serializing in the form YYYY-MM-DDTHH:MM:SSZ (eg: 1990-02-12T13:05:39Z) to JSON 2018-04-20 09:41:41 +00:00
flatexpression.h PT::Date is serializing in the form YYYY-MM-DDTHH:MM:SSZ (eg: 1990-02-12T13:05:39Z) to JSON 2018-04-20 09:41:41 +00:00
jsonconnector.cpp reorganizing class hierarchy 2018-03-23 19:26:57 +00:00
jsonconnector.h reorganizing class hierarchy 2018-03-23 19:26:57 +00:00
jsonexpression.cpp Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
jsonexpression.h in BaseExpression: changed the way how field names are escaped: 2021-02-24 01:15:17 +01:00
model.cpp Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
model.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
modelconnector.cpp removed: doc functionality (generating documentation from a model) 2019-09-18 15:55:42 +00:00
modelconnector.h removed: doc functionality (generating documentation from a model) 2019-09-18 15:55:42 +00:00
modeldata.h some work in branches/join_models 2019-05-21 15:51:13 +00:00
modelenv.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
morm.h removed: doc functionality (generating documentation from a model) 2019-09-18 15:55:42 +00:00
morm_types.h removed: doc functionality (generating documentation from a model) 2019-09-18 15:55:42 +00:00
outstream.h start creating a new project: Micro ORM 2018-03-13 22:22:17 +00:00
postgresqlconnector.cpp fixed: in cursor in add_models_to_list(): added_model.model_env should be set after added_model.clear() 2019-06-17 10:59:39 +00:00
postgresqlconnector.h fixed: in cursor in add_models_to_list(): added_model.model_env should be set after added_model.clear() 2019-06-17 10:59:39 +00:00
postgresqlexpression.cpp Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
postgresqlexpression.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
postgresqlqueryresult.cpp added comments to PostgreSQLQueryResult::get_value_from_result(): 2019-11-22 13:40:30 +00:00
postgresqlqueryresult.h fixed: in 'left join' statements there were not table indices used 2019-09-18 12:29:20 +00:00
queryresult.cpp fixed: in 'left join' statements there were not table indices used 2019-09-18 12:29:20 +00:00
queryresult.h fixed: in 'left join' statements there were not table indices used 2019-09-18 12:29:20 +00:00