[libgda: 15/17] Merge branch 'wip/ddl-check' into 'master'
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda: 15/17] Merge branch 'wip/ddl-check' into 'master'
- Date: Mon, 25 Nov 2019 18:23:23 +0000 (UTC)
commit 88fed9c9d65b7e20a29c06653bc595c15f755722
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Tue Oct 29 23:53:04 2019 +0000
Merge branch 'wip/ddl-check' into 'master'
DDL: Table constraint was added.
See merge request GNOME/libgda!114
Fixing broken rebase process
libgda/gda-db-table.c | 17 +++++++++++++++++
libgda/gda-db-table.h | 3 +++
2 files changed, 20 insertions(+)
---
diff --git a/libgda/gda-db-table.c b/libgda/gda-db-table.c
index 769728b9c..63ef5d502 100644
--- a/libgda/gda-db-table.c
+++ b/libgda/gda-db-table.c
@@ -1164,3 +1164,20 @@ on_error:
return FALSE;
}
+/**
+ * gda_db_table_append_constraint:
+ * @self: a #GdaDbTable instance
+ * @constr a constraint string to append
+ *
+ * Since: 6.0
+ *
+ */
+void
+gda_db_table_append_constraint (GdaDbTable *self,
+ const gchar *constr)
+{
+ GdaDbTablePrivate *priv = gda_db_table_get_instance_private (self);
+
+ priv->mp_constraint = g_slist_append (priv->mp_constraint, g_strdup (constr));
+}
+>>>>>>> 0bbb2b518... Merge branch 'wip/ddl-check' into 'master'
diff --git a/libgda/gda-db-table.h b/libgda/gda-db-table.h
index 5322de351..736009ead 100644
--- a/libgda/gda-db-table.h
+++ b/libgda/gda-db-table.h
@@ -104,6 +104,9 @@ gboolean gda_db_table_add_index (GdaDbTable *self,
GdaConnection *cnc,
gboolean ifnotexists,
GError **error);
+void gda_db_table_append_constraint (GdaDbTable *self,
+ const gchar *constraint);
+
G_END_DECLS
#endif /* end of include guard: GDA-DB-TABLE_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]