[libgdamm] Add Connection::create_from_string().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdamm] Add Connection::create_from_string().
- Date: Thu, 10 Nov 2011 10:53:51 +0000 (UTC)
commit ea80c7168727b6f3de6b494ed2bbb4d30d068489
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Nov 10 11:18:10 2011 +0100
Add Connection::create_from_string().
* libgda/src/libgda_methods.defs: Regenerated with h2defs.py.
* libgda/src/connection.hg: Added create_from_string() which allows
us to create a Connection which is not yet opened.
ChangeLog | 8 +++++++
configure.ac | 2 +-
libgda/src/connection.hg | 2 +
libgda/src/libgda_methods.defs | 44 +++++++++++++++++++++++++++++++++++++++-
4 files changed, 54 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index af5b18f..59f5bf9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-11-10 Murray Cumming <murrayc murrayc com>
+
+ Add Connection::create_from_string().
+
+ * libgda/src/libgda_methods.defs: Regenerated with h2defs.py.
+ * libgda/src/connection.hg: Added create_from_string() which allows
+ us to create a Connection which is not yet opened.
+
4.99.5:
2011-10-26 Murray Cumming <murrayc murrayc com>
diff --git a/configure.ac b/configure.ac
index aa22a72..d90edd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@
## You should have received a copy of the GNU Lesser General Public License
## along with this library. If not, see <http://www.gnu.org/licenses/>.
-AC_INIT([libgdamm], [4.99.5], [http://bugzilla.gnome.org/enter_bug.cgi?product=libgdamm],
+AC_INIT([libgdamm], [5.0.2], [http://bugzilla.gnome.org/enter_bug.cgi?product=libgdamm],
[libgdamm], [http://www.gtkmm.org/])
AC_PREREQ([2.59])
diff --git a/libgda/src/connection.hg b/libgda/src/connection.hg
index 4d83efb..7b41c53 100644
--- a/libgda/src/connection.hg
+++ b/libgda/src/connection.hg
@@ -70,6 +70,8 @@ protected:
public:
_WRAP_CREATE()
+ _WRAP_METHOD(static Glib::RefPtr<Connection> create_from_string(const Glib::ustring& provider_name, const Glib::ustring& cnc_string, const Glib::ustring& auth_string = Glib::ustring(), ConnectionOptions options = CONNECTION_OPTIONS_NONE), gda_connection_new_from_string, errthrow)
+
/* This throws an error which we don't want to do in a constructor */
_WRAP_METHOD_DOCS_ONLY(gda_connection_open_from_string)
static Glib::RefPtr<Connection> open_from_string(const Glib::ustring& provider_name,
diff --git a/libgda/src/libgda_methods.defs b/libgda/src/libgda_methods.defs
index 5d47bc4..73140f2 100644
--- a/libgda/src/libgda_methods.defs
+++ b/libgda/src/libgda_methods.defs
@@ -1796,6 +1796,29 @@
)
)
+(define-function gda_connection_new_from_dsn
+ (c-name "gda_connection_new_from_dsn")
+ (return-type "GdaConnection*")
+ (parameters
+ '("const-gchar*" "dsn")
+ '("const-gchar*" "auth_string")
+ '("GdaConnectionOptions" "options")
+ '("GError**" "error")
+ )
+)
+
+(define-function gda_connection_new_from_string
+ (c-name "gda_connection_new_from_string")
+ (return-type "GdaConnection*")
+ (parameters
+ '("const-gchar*" "provider_name")
+ '("const-gchar*" "cnc_string")
+ '("const-gchar*" "auth_string")
+ '("GdaConnectionOptions" "options")
+ '("GError**" "error")
+ )
+)
+
(define-method open
(of-object "GdaConnection")
(c-name "gda_connection_open")
@@ -5667,7 +5690,7 @@
(c-name "gda_sql_builder_add_id")
(return-type "GdaSqlBuilderId")
(parameters
- '("const-gchar*" "string")
+ '("const-gchar*" "str")
)
)
@@ -5959,6 +5982,15 @@
)
)
+(define-method compound_add_sub_select_from_builder
+ (of-object "GdaSqlBuilder")
+ (c-name "gda_sql_builder_compound_add_sub_select_from_builder")
+ (return-type "none")
+ (parameters
+ '("GdaSqlBuilder*" "subselect")
+ )
+)
+
(define-method export_expression
(of-object "GdaSqlBuilder")
(c-name "gda_sql_builder_export_expression")
@@ -5977,6 +6009,16 @@
)
)
+(define-method import_expression_from_builder
+ (of-object "GdaSqlBuilder")
+ (c-name "gda_sql_builder_import_expression_from_builder")
+ (return-type "GdaSqlBuilderId")
+ (parameters
+ '("GdaSqlBuilder*" "query")
+ '("GdaSqlBuilderId" "expr_id")
+ )
+)
+
;; From gda-statement-extra.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]