Log of /morm
Directory Listing
Revision
1222 -
Directory Listing
-
[select for diffs]
Modified
Thu Sep 26 17:15:00 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1221
fixed: Finder didn't use ModelData structure when creating the select query
ModelData structure was used only later in Cursor
fixed: in Finder::select(PT::TextStream & out_stream, ModelConnector & model_connector)
and Finder::select(PT::TextStream & out_stream, ModelConnector * model_connector)
there was 'out_stream' parameter ignored
Revision
1217 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 25 16:20:37 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1215
fixed: in Model::remove(ModelData & model_data, bool remove_whole_tree) we didn't use remove_whole_tree parameter
fixed: compilation erorr when inserting/updating a Model object which has child lists without Model objects such as std::list<int>
added: to Model: methods insert, update, remove and save with one argument: bool save_whole_tree
Revision
1215 -
Directory Listing
-
[select for diffs]
Modified
Tue Sep 24 17:08:45 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1214
fixed: a parent key was not properly set to simple childs (insert statements)
fixed: a parent key was not set in list of childs (insert statements)
Revision
1213 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 18 15:55:42 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1212
removed: doc functionality (generating documentation from a model)
we can use our own class (based on FlatConnector and FlatExpression) to generate documentation
Revision
1212 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 18 15:28:06 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1211
refactoring: ModelEnv::model_connector_mode renamed to model_work_mode
ModelEnv::model_connector_submode renamed to model_work_submode
and similarly macros MORM_MODEL_CONNECTOR_MODE.* -> MORM_MODEL_WORK_MODE_*
MORM_MODEL_CONNECTOR_SUBMODE.* -> MORM_MODEL_WORK_SUBMODE_*
Revision
1211 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 18 14:36:13 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1210
rafactoring in Model class (in field_generic and field_model methods)
added: ModelEnv::model_connector_submode (used in iterating through childs)
Revision
1210 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 18 12:29:20 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1209
fixed: in 'left join' statements there were not table indices used
added: now we set flag save_mode = DO_NOTHING_ON_SAVE for objects for which
all fields from a database result set are null
Revision
1209 -
Directory Listing
-
[select for diffs]
Modified
Tue Sep 17 17:55:39 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1208
fixed: get_value_by_field_name() is able to correctly take values when
we do not use auto generated 'select' and when we are using prefixes for columns
Revision
1208 -
Directory Listing
-
[select for diffs]
Modified
Fri Sep 13 18:17:02 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1207
added: to Model::to_text() methods added dump_mode (bool) parameter
an additional field (model_save_mode) is printed
changed: if there is no an object the Cursor returns a Model with DO_NOTHING_ON_SAVE flag now
(DO_INSERT_ON_SAVE was beforehand)
fixed: when reading a result from db: for auto generated select there should be used
get_value_by_field_index() method instead of get_value_by_field_name()
changed: flat string (json) is generated only if a model has DO_INSERT_ON_SAVE
or DO_UPDATE_ON_SAVE or is dump_mode turn on
Revision
1207 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 11 18:16:22 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1206
changed: SetFieldValueHelper -> FieldValueHelper
it's a much simpler structure now
removed: FieldValueBase and FieldValueContainer
Revision
1205 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 4 16:02:18 2019 UTC
(3 years, 5 months ago)
by
tomek
Diff to
previous 1204
now Model.update() and Model.insert() can update/insert the whole tree with child models
(at the moment without lists/vectors only model childs)
Revision
1204 -
Directory Listing
-
[select for diffs]
Modified
Thu Aug 22 18:33:35 2019 UTC
(3 years, 5 months ago)
by
tomek
Diff to
previous 1203
added: to Model: virtual void set_parent_key_in_childs()
for setting a parent key id in child models,
it is called after after_insert() method
added: SetFieldValueHelper class used for storing primary key values from a parent model
Revision
1200 -
Directory Listing
-
[select for diffs]
Modified
Tue Aug 20 15:49:37 2019 UTC
(3 years, 5 months ago)
by
tomek
Diff to
previous 1196
fixed: in Model::generate_insert_query there was not ModelEnv set (was a null pointer)
similarly in generate_update_query and generate_remove_query
added: support std::vector<> in Model::field() methods
added: serializing std::vector and std::list for non-model classes in BaseExpression
Revision
1196 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 20 18:04:37 2019 UTC
(3 years, 6 months ago)
by
tomek
Diff to
previous 1195
merge from branches/join_models
(added possibility to fetch Model objects when they are used as a field in a Model class)
Revision
1195 -
Directory Listing
-
[select for diffs]
Modified
Mon Jun 17 10:59:39 2019 UTC
(3 years, 7 months ago)
by
tomek
Diff to
previous 1194
fixed: in cursor in add_models_to_list(): added_model.model_env should be set after added_model.clear()
fixed: when generating: insert, update or remove statements we have used prefixes for columns
but the table name was not set in ModelEnv (now we do not use prefixes in such statements)
changed: log_queries field moved from PostgreSQLConnector to DbConnector
Revision
1194 -
Directory Listing
-
[select for diffs]
Modified
Fri May 31 18:28:09 2019 UTC
(3 years, 8 months ago)
by
tomek
Diff to
previous 1193
added BaseExpression::is_long_field_name()
added BaseExpression::need_to_add_field_prefix()
now the fields() methods don't take add_column_prefix parameter
but the field_name (wchar_t*) is tested whether is it a long (with a period) or short name
added BaseExpression::save_foreign_key() (code moved from field())
removed some default method arguments from BaseExpression
added neq() method for Finder
added DbExpression::prepare_short_table_name(const PT::TextStream & table_name, PT::TextStream & short_table_name)
Revision
1193 -
Directory Listing
-
[select for diffs]
Modified
Tue May 21 17:24:12 2019 UTC
(3 years, 8 months ago)
by
tomek
Diff to
previous 1192
- removed prefix() method from Finder
(this was for a custom prefix)
- removed column_prefix and column_prefix_index from BaseExpression
now we have a pointer to ModelEnv passed in field() method
- to ModelEnv: added table_name, table_name_simple and table_index
Revision
1192 -
Directory Listing
-
[select for diffs]
Modified
Tue May 21 15:51:13 2019 UTC
(3 years, 8 months ago)
by
tomek
Diff to
previous 1191
some work in branches/join_models
- added FinderHelper class - used as a global object for the whole model tree in Finder
(some fields moved from ModelData)
- added CursorHelper class - used as a global object for the whole model tree in Cursor
(some fields moved from ModelData)
Revision
1191 -
Directory Listing
-
[select for diffs]
Modified
Mon May 13 17:59:28 2019 UTC
(3 years, 8 months ago)
by
tomek
Diff to
previous 1190
some work in branches/join_models
added: ModelEnv class - now Model has a pointer to ModelEnv
and ModelEnv has a pointer to ModelData, model_connector_mode, table_index and doc_field_pointer
Revision
1186 -
Directory Listing
-
[select for diffs]
Modified
Tue Mar 26 18:34:07 2019 UTC
(3 years, 10 months ago)
by
tomek
Diff to
previous 1185
added: support for generating LEFT JOIN statement in Finder
(the primary key should consist of only one column at the moment)
Revision
1175 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 7 18:02:29 2019 UTC
(3 years, 11 months ago)
by
tomek
Diff to
previous 1165
changed: ModelData moved outside Model
added: using ModelData in BaseExpression so Model::to_text() functions can use a ModelData object now
Revision
1142 -
Directory Listing
-
[select for diffs]
Modified
Thu Nov 15 08:50:10 2018 UTC
(4 years, 2 months ago)
by
tomek
Diff to
previous 1140
changed: testing result status in do_query() in PostgreSQLConnector
renamed: some fields in QueryResult and PostgreSQLQueryResult
Revision
1131 -
Directory Listing
-
[select for diffs]
Modified
Wed Oct 24 16:28:19 2018 UTC
(4 years, 3 months ago)
by
tomek
Diff to
previous 1124
fixed: in Finder: we should set model_data to nullptr after fetching an object
model_data points often to a local object (on the stack) so it would be incorrect
to use it in the future
Revision
1120 -
Directory Listing
-
[select for diffs]
Modified
Wed Jul 4 13:52:40 2018 UTC
(4 years, 7 months ago)
by
tomek
Diff to
previous 1119
removed: set_connector_for_childs from ModelConnector
changed: model connector is propagated to childs when needed
(when update, insert, save, to_text is called or in finder)
Revision
1092 -
Directory Listing
-
[select for diffs]
Modified
Sun Apr 22 21:04:50 2018 UTC
(4 years, 9 months ago)
by
tomek
Diff to
previous 1091
added: Model::ModelData base class to use with Finder, Model.update(), Model.insert() and Model.remove()
added: Model.add_field_for_select() method
Revision
1087 -
Directory Listing
-
[select for diffs]
Modified
Thu Apr 19 11:37:10 2018 UTC
(4 years, 9 months ago)
by
tomek
Diff to
previous 1086
poprawka: get_value() z postgresqlconnector zamienione na get_value_from_result()
w klasie bazowej mamy virtualne get_value() z innymi parametrami
(ostrzeżenie kompilatora)
Revision
1085 -
Directory Listing
-
[select for diffs]
Modified
Wed Apr 18 10:22:01 2018 UTC
(4 years, 9 months ago)
by
tomek
Diff to
previous 1084
added: QueryResult stack to PostgreSQLConnector
this allowes us to call query() recursively (from after_select() callback)