UPDATE/INSERT a single instance of m_type_name into the database.
160 g_return_val_if_fail (sql_be != NULL, FALSE);
161 g_return_val_if_fail (inst != NULL, FALSE);
162 g_return_val_if_fail (GNC_IS_SX (inst), FALSE);
166 is_infant = qof_instance_get_infant (inst);
171 else if (sql_be->pristine() || is_infant)
179 is_ok = sql_be->
do_db_operation(op, SCHEDXACTION_TABLE, GNC_SX_ID, pSx,
182 if (op == OP_DB_INSERT || op == OP_DB_UPDATE)
188 gnc_sql_recurrence_delete (sql_be, guid);
194 if (op == OP_DB_INSERT || op == OP_DB_UPDATE)
bool do_db_operation(E_DB_OPERATION op, const char *table_name, QofIdTypeConst obj_name, gpointer pObject, const EntryVec &table) const noexcept
Performs an operation on the database.
GList * gnc_sx_get_schedule(const SchedXaction *sx)
const GncGUID * qof_instance_get_guid(gconstpointer inst)
Return the GncGUID of this instance.
gboolean qof_instance_get_destroying(gconstpointer ptr)
Retrieve the flag that indicates whether or not this object is about to be destroyed.
gboolean gnc_sql_slots_save(GncSqlBackend *sql_be, const GncGUID *guid, gboolean is_infant, QofInstance *inst)
gnc_sql_slots_save - Saves slots for an object to the db.
gboolean gnc_sql_slots_delete(GncSqlBackend *sql_be, const GncGUID *guid)
gnc_sql_slots_delete - Deletes slots for an object from the db.
The type used to store guids in C.