removing objects
saving objects (either insert or update or remove)





git-svn-id: svn://ttmath.org/publicrep/morm/trunk@1091 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2018-04-22 01:26:46 +00:00
parent 925017300b
commit 4c0d203fc8
12 changed files with 542 additions and 151 deletions

View File

@@ -63,6 +63,10 @@ public:
// FIX ME
// add c-copy ctr (allocate a new stream and expression)
virtual bool was_db_error();
virtual std::wstring get_db_error();
virtual void set_stream(PT::TextStream & stream);
virtual PT::TextStream * get_stream();
@@ -80,9 +84,11 @@ public:
virtual void generate_select_columns(PT::TextStream & stream, Model & model);
virtual void generate_insert_query(PT::TextStream & stream, Model & model);
virtual void generate_update_query(PT::TextStream & stream, Model & model);
virtual void generate_remove_query(PT::TextStream & stream, Model & model);
virtual void insert(Model & model);
virtual void update(Model & model);
virtual bool insert(Model & model);
virtual bool update(Model & model);
virtual bool remove(Model & model);
virtual void map_values_from_query(Model & model);