[libgda] GdaConnectionModel: renamed from GdaConnectionProvider
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdaConnectionModel: renamed from GdaConnectionProvider
- Date: Mon, 7 Jan 2019 16:51:06 +0000 (UTC)
commit fe5f170ce397ca21c23b3f8991e383a9f952645e
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Mon Jan 7 10:07:26 2019 -0600
GdaConnectionModel: renamed from GdaConnectionProvider
Modifications required to avoid conflics with new GdaDbColumn
(used to be DdlColumn)
libgda/gda-connection-provider.vala | 16 ++++++++--------
libgda/gda-db-catalog.c | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/libgda/gda-connection-provider.vala b/libgda/gda-connection-provider.vala
index 227333eee..35604fca3 100644
--- a/libgda/gda-connection-provider.vala
+++ b/libgda/gda-connection-provider.vala
@@ -19,8 +19,8 @@
/**
* An interface to be implemented by database providers
*/
-public interface Gda.ConnectionProvider : GLib.Object {
- public abstract ConnectionParams cnc_params { get; set; }
+public interface Gda.ConnectionModel : GLib.Object {
+ public abstract ConnectionModelParams cnc_params { get; set; }
public abstract bool is_opened { get; }
public abstract signal void closed ();
@@ -45,7 +45,7 @@ public interface Gda.ConnectionProvider : GLib.Object {
/**
* A class to hold and parse connection string
*/
-public class Gda.ConnectionParams : GLib.Object {
+public class Gda.ConnectionModelParams : GLib.Object {
public string user { get; set; }
public string pasword { get; set; }
public string cnc_string { get; set; }
@@ -56,7 +56,7 @@ public class Gda.ConnectionParams : GLib.Object {
*/
public interface Gda.Query : GLib.Object {
public abstract string sql { get; }
- public abstract Gda.ConnectionProvider connection { get; }
+ public abstract Gda.ConnectionModel connection { get; }
public abstract async Gda.Result execute () throws GLib.Error;
public abstract async void cancel ();
}
@@ -83,7 +83,7 @@ public interface Gda.TableModel : GLib.Object, GLib.ListModel, Gda.Result {
*/
public interface Gda.Inserted : GLib.Object, Gda.Result {
public abstract int number { get; }
- public abstract Gda.DbRow last_insertd { get; }
+ public abstract Gda.RowModel last_insertd { get; }
}
/**
@@ -95,15 +95,15 @@ public interface Gda.AfectedRows : GLib.Object, Gda.Result {
/**
* Represent a row in a table model.
*/
-public interface Gda.DbRow : GLib.Object, GLib.ListModel {
+public interface Gda.RowModel : GLib.Object, GLib.ListModel {
public abstract int n_columns { get; }
- public abstract Gda.DbColumn get_column (string name);
+ public abstract Gda.ColumnModel get_column (string name);
}
/**
* Represent a column in a row of a table model
*/
-public interface Gda.DbColumn : GLib.Object {
+public interface Gda.ColumnModel : GLib.Object {
public abstract string name { get; }
public abstract GLib.Type data_type { get; }
}
diff --git a/libgda/gda-db-catalog.c b/libgda/gda-db-catalog.c
index c7543af6b..58557291b 100644
--- a/libgda/gda-db-catalog.c
+++ b/libgda/gda-db-catalog.c
@@ -768,7 +768,7 @@ gda_db_catalog_perform_operation (GdaDbCatalog *self,
}
}
else {
- if(st = gda_db_table_create (it->data,priv->cnc, TRUE, error))
+ st = gda_db_table_create (it->data,priv->cnc, TRUE, error);
if (!st) {
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]