Commit 20de72d3 authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz

Merge branch 'wip/ddlrename' into 'master'

DDL module was replaced with DB module

See merge request GNOME/libgda!75
parents c8f8be46 f839d184
Pipeline #48414 failed with stage
in 46 seconds
......@@ -88,15 +88,15 @@
<xi:include href="xml/gda-attributes-manager.xml"/>
</chapter>
<chapter id="DDL">
<title>DDL</title>
<xi:include href="xml/gda-ddl-base.xml"/>
<xi:include href="xml/gda-ddl-buildable.xml"/>
<xi:include href="xml/gda-ddl-column.xml"/>
<xi:include href="xml/gda-ddl-creator.xml"/>
<xi:include href="xml/gda-ddl-fkey.xml"/>
<xi:include href="xml/gda-ddl-table.xml"/>
<xi:include href="xml/gda-ddl-view.xml"/>
<chapter id="DB Catalog">
<title>DB Catalog</title>
<xi:include href="xml/gda-db-base.xml"/>
<xi:include href="xml/gda-db-buildable.xml"/>
<xi:include href="xml/gda-db-column.xml"/>
<xi:include href="xml/gda-db-catalog.xml"/>
<xi:include href="xml/gda-db-fkey.xml"/>
<xi:include href="xml/gda-db-table.xml"/>
<xi:include href="xml/gda-db-view.xml"/>
</chapter>
<chapter id="Statement">
......
<SECTION>
<FILE>gda-ddl-fkey</FILE>
<TITLE>GdaDdlFkey</TITLE>
GdaDdlFkey
GDA_TYPE_DDL_FKEY
GdaDdlFkeyReferenceAction
gda_ddl_fkey_new
gda_ddl_fkey_new_from_meta
gda_ddl_fkey_free
gda_ddl_fkey_get_field_name
gda_ddl_fkey_get_ref_field
gda_ddl_fkey_set_field
gda_ddl_fkey_get_ref_table
gda_ddl_fkey_set_ref_table
gda_ddl_fkey_get_ondelete
gda_ddl_fkey_get_ondelete_id
gda_ddl_fkey_set_ondelete
gda_ddl_fkey_get_onupdate
gda_ddl_fkey_get_onupdate_id
gda_ddl_fkey_set_onupdate
gda_ddl_fkey_prepare_create
</SECTION>
<SECTION>
<FILE>gda-ddl-column</FILE>
<TITLE>GdaDdlColumn</TITLE>
GdaDdlColumn
GdaDdlColumnError
GDA_TYPE_DDL_COLUMN
gda_ddl_column_new
gda_ddl_column_new_from_meta
gda_ddl_column_free
gda_ddl_column_get_autoinc
gda_ddl_column_set_autoinc
gda_ddl_column_get_check
gda_ddl_column_set_check
gda_ddl_column_get_comment
gda_ddl_column_set_comment
gda_ddl_column_get_gtype
gda_ddl_column_get_ctype
gda_ddl_column_set_type
gda_ddl_column_get_default
gda_ddl_column_set_default
gda_ddl_column_get_name
gda_ddl_column_set_name
gda_ddl_column_get_nnul
gda_ddl_column_set_nnul
gda_ddl_column_get_pkey
gda_ddl_column_set_pkey
gda_ddl_column_get_scale
gda_ddl_column_set_scale
gda_ddl_column_get_size
gda_ddl_column_set_size
gda_ddl_column_get_unique
gda_ddl_column_set_unique
gda_ddl_column_prepare_add
gda_ddl_column_prepare_create
</SECTION>
<SECTION>
<FILE>gda-ddl-base</FILE>
<TITLE>GdaDdlBase</TITLE>
GdaDdlBase
GDA_TYPE_DDL_BASE
gda_ddl_base_compare
gda_ddl_base_free
gda_ddl_base_get_catalog
gda_ddl_base_get_full_name
gda_ddl_base_get_name
gda_ddl_base_get_schema
gda_ddl_base_new
gda_ddl_base_set_catalog
gda_ddl_base_set_name
gda_ddl_base_set_names
gda_ddl_base_set_schema
</SECTION>
<SECTION>
<FILE>gda-ddl-buildable</FILE>
<TITLE>GdaDdlBuildable</TITLE>
GdaDdlBuildable
GDA_TYPE_DDL_BUILDABLE
gda_ddl_buildable_parse_node
gda_ddl_buildable_write_node
</SECTION>
<SECTION>
<FILE>gda-ddl-creator</FILE>
<TITLE>GdaDdlCreator</TITLE>
GdaDdlCreator
GdaDdlCreatorError
GDA_TYPE_DDL_CREATOR
gda_ddl_creator_get_type
gda_ddl_creator_new
gda_ddl_creator_free
gda_ddl_creator_get_tables
gda_ddl_creator_get_views
gda_ddl_creator_append_table
gda_ddl_creator_append_view
gda_ddl_creator_parse_cnc
gda_ddl_creator_parse_file
gda_ddl_creator_parse_file_from_path
gda_ddl_creator_perform_operation
gda_ddl_creator_write_to_file
gda_ddl_creator_write_to_path
</SECTION>
<SECTION>
<FILE>gda-ddl-table</FILE>
<TITLE>GdaDdlTable</TITLE>
GdaDdlTable
GdaDdlTableError
GDA_TYPE_DDL_TABLE
gda_ddl_table_new
gda_ddl_table_new_from_meta
gda_ddl_table_free
gda_ddl_table_is_valid
gda_ddl_table_append_column
gda_ddl_table_get_columns
gda_ddl_table_append_fkey
gda_ddl_table_get_fkeys
gda_ddl_table_create
gda_ddl_table_is_temp
gda_ddl_table_set_temp
gda_ddl_table_prepare_create
gda_ddl_table_update
</SECTION>
<SECTION>
<FILE>gda-ddl-view</FILE>
<TITLE>GdaDdlView</TITLE>
GdaDdlView
GDA_TYPE_DDL_VIEW
gda_ddl_view_new
gda_ddl_view_new_from_meta
gda_ddl_view_free
gda_ddl_view_get_defstring
gda_ddl_view_set_defstring
gda_ddl_view_get_ifnoexist
gda_ddl_view_set_ifnoexist
gda_ddl_view_get_istemp
gda_ddl_view_set_istemp
gda_ddl_view_get_replace
gda_ddl_view_set_replace
gda_ddl_view_prepare_create
gda_ddl_view_create
<FILE>gda-db-fkey</FILE>
<TITLE>GdaDbFkey</TITLE>
GdaDbFkey
GDA_TYPE_DB_FKEY
GdaDbFkeyReferenceAction
gda_db_fkey_new
gda_db_fkey_new_from_meta
gda_db_fkey_free
gda_db_fkey_get_field_name
gda_db_fkey_get_ref_field
gda_db_fkey_set_field
gda_db_fkey_get_ref_table
gda_db_fkey_set_ref_table
gda_db_fkey_get_ondelete
gda_db_fkey_get_ondelete_id
gda_db_fkey_set_ondelete
gda_db_fkey_get_onupdate
gda_db_fkey_get_onupdate_id
gda_db_fkey_set_onupdate
gda_db_fkey_prepare_create
</SECTION>
<SECTION>
<FILE>gda-db-column</FILE>
<TITLE>GdaDbColumn</TITLE>
GdaDbColumn
GdaDbColumnError
GDA_TYPE_DB_COLUMN
gda_db_column_new
gda_db_column_new_from_meta
gda_db_column_free
gda_db_column_get_autoinc
gda_db_column_set_autoinc
gda_db_column_get_check
gda_db_column_set_check
gda_db_column_get_comment
gda_db_column_set_comment
gda_db_column_get_gtype
gda_db_column_get_ctype
gda_db_column_set_type
gda_db_column_get_default
gda_db_column_set_default
gda_db_column_get_name
gda_db_column_set_name
gda_db_column_get_nnul
gda_db_column_set_nnul
gda_db_column_get_pkey
gda_db_column_set_pkey
gda_db_column_get_scale
gda_db_column_set_scale
gda_db_column_get_size
gda_db_column_set_size
gda_db_column_get_unique
gda_db_column_set_unique
gda_db_column_prepare_add
gda_db_column_prepare_create
</SECTION>
<SECTION>
<FILE>gda-db-base</FILE>
<TITLE>GdaDbBase</TITLE>
GdaDbBase
GDA_TYPE_DB_BASE
gda_db_base_compare
gda_db_base_free
gda_db_base_get_catalog
gda_db_base_get_full_name
gda_db_base_get_name
gda_db_base_get_schema
gda_db_base_new
gda_db_base_set_catalog
gda_db_base_set_name
gda_db_base_set_names
gda_db_base_set_schema
</SECTION>
<SECTION>
<FILE>gda-db-buildable</FILE>
<TITLE>GdaDbBuildable</TITLE>
GdaDbBuildable
GDA_TYPE_DB_BUILDABLE
gda_db_buildable_parse_node
gda_db_buildable_write_node
</SECTION>
<SECTION>
<FILE>gda-db-catalog</FILE>
<TITLE>GdaDbCatalog</TITLE>
GdaDbCatalog
GdaDbCatalogError
GDA_TYPE_DB_CREATOR
gda_db_catalog_get_type
gda_db_catalog_new
gda_db_catalog_free
gda_db_catalog_get_tables
gda_db_catalog_get_views
gda_db_catalog_append_table
gda_db_catalog_append_view
gda_db_catalog_parse_cnc
gda_db_catalog_parse_file
gda_db_catalog_parse_file_from_path
gda_db_catalog_perform_operation
gda_db_catalog_write_to_file
gda_db_catalog_write_to_path
</SECTION>
<SECTION>
<FILE>gda-db-table</FILE>
<TITLE>GdaDbTable</TITLE>
GdaDbTable
GdaDbTableError
GDA_TYPE_DB_TABLE
gda_db_table_new
gda_db_table_new_from_meta
gda_db_table_free
gda_db_table_is_valid
gda_db_table_append_column
gda_db_table_get_columns
gda_db_table_append_fkey
gda_db_table_get_fkeys
gda_db_table_create
gda_db_table_is_temp
gda_db_table_set_temp
gda_db_table_prepare_create
gda_db_table_update
</SECTION>
<SECTION>
<FILE>gda-db-view</FILE>
<TITLE>GdaDbView</TITLE>
GdaDbView
GDA_TYPE_DB_VIEW
gda_db_view_new
gda_db_view_new_from_meta
gda_db_view_free
gda_db_view_get_defstring
gda_db_view_set_defstring
gda_db_view_get_ifnoexist
gda_db_view_set_ifnoexist
gda_db_view_get_istemp
gda_db_view_set_istemp
gda_db_view_get_replace
gda_db_view_set_replace
gda_db_view_prepare_create
gda_db_view_create
</SECTION>
<SECTION>
......
......@@ -9,8 +9,8 @@ utility_holder_load_attributes.node type="Xml.Node*"
DataModelImport.new_xml_node.node type="Xml.Node*"
value_new_from_xml.node type="Xml.Node"
ServerOperation.load_data_from_xml.node type="Xml.Node*"
DdlBuildable.parse_node.node type="Xml.Node*"
DdlBuildable.write_node.node type="Xml.Node*"
DbBuildable.parse_node.node type="Xml.Node*"
DbBuildable.write_node.node type="Xml.Node*"
// Rename methods
Numeric.get_string nullable=true
......
......@@ -111,13 +111,13 @@ gda_headers = \
gda-xa-transaction.h \
libgda-global-variables.h \
gda-data-pivot.h \
gda-ddl-base.h \
gda-ddl-fkey.h \
gda-ddl-column.h \
gda-ddl-table.h \
gda-ddl-buildable.h \
gda-ddl-view.h \
gda-ddl-creator.h
gda-db-base.h \
gda-db-fkey.h \
gda-db-column.h \
gda-db-table.h \
gda-db-buildable.h \
gda-db-view.h \
gda-db-catalog.h
gda_built_sources= \
$(builddir)/libgda.h
......@@ -173,13 +173,13 @@ gda_sources= \
gda-value.c \
gda-xa-transaction.c \
gda-data-pivot.c \
gda-ddl-base.c \
gda-ddl-fkey.c \
gda-ddl-column.c \
gda-ddl-table.c \
gda-ddl-buildable.c \
gda-ddl-view.c \
gda-ddl-creator.c
gda-db-base.c \
gda-db-fkey.c \
gda-db-column.c \
gda-db-table.c \
gda-db-buildable.c \
gda-db-view.c \
gda-db-catalog.c
libgda_sources = \
csv.h \
......@@ -307,7 +307,7 @@ xml_DATA = $(srcdir)/information_schema.xml
DTD_FILES = libgda-array.dtd \
libgda-paramlist.dtd \
libgda-server-operation.dtd \
libgda-ddl-creator.dtd
libgda-db-catalog.dtd
dtddir=$(LIBGDA_DTDDIR)
dtd_DATA=$(DTD_FILES)
......
......@@ -7131,25 +7131,25 @@ gda_connection_operation_get_sql_identifier_at_path (GdaConnection *cnc, GdaServ
}
/**
* gda_connection_create_ddl_creator:
* gda_connection_create_db_catalog:
* @cnc: A #GdaConnection object to use
*
* A convenient method to create a new #GdaDdlCreator instance and set the current @cnc as a
* A convenient method to create a new #GdaDbCreator instance and set the current @cnc as a
* property. If for some reason, this approach doesn't fit well, the same task can be achieved
* by the following code:
*
* GdaDdlCreator *creator = gda_ddl_creator_new ();
* g_object_set (creator, "connection", cnc, NULL);
* GdaDbCatalog *catalog = gda_db_catalog_new ();
* g_object_set (catalog, "connection", cnc, NULL);
*
* Returns: (transfer full): A new instance of #GdaDdlCreator. The new object should be deallocated
* Returns: (transfer full): A new instance of #GdaDbCatalog. The new object should be deallocated
* using g_object_unref().
*
* Since: 6.0
*/
GdaDdlCreator*
gda_connection_create_ddl_creator (GdaConnection *cnc)
GdaDbCatalog*
gda_connection_create_db_catalog (GdaConnection *cnc)
{
g_return_val_if_fail (GDA_IS_CONNECTION (cnc),NULL);
return g_object_new (GDA_TYPE_DDL_CREATOR,"connection",cnc,NULL);
return g_object_new (GDA_TYPE_DB_CATALOG,"connection",cnc,NULL);
}
......@@ -41,7 +41,7 @@
#include <libgda/gda-meta-store.h>
#include <libgda/gda-server-operation.h>
#include <libgda/gda-batch.h>
#include <libgda/gda-ddl-creator.h>
#include <libgda/gda-db-catalog.h>
G_BEGIN_DECLS
......@@ -394,7 +394,7 @@ GdaDataModel *gda_connection_get_meta_store_data (GdaConnection *cnc, Gd
GError **error, gint nb_filters, ...);
GdaDataModel *gda_connection_get_meta_store_data_v(GdaConnection *cnc, GdaConnectionMetaType meta_type,
GList* filters, GError **error);
GdaDdlCreator *gda_connection_create_ddl_creator (GdaConnection *cnc);
GdaDbCatalog *gda_connection_create_db_catalog (GdaConnection *cnc);
G_END_DECLS
#endif
/* gda-ddl-base.c
/* gda-db-base.c
*
* Copyright (C) 2018 Pavlo Solntsev <p.sun.fun@gmail.com>
*
......@@ -17,7 +17,7 @@
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "gda-ddl-base.h"
#include "gda-db-base.h"
#include <glib/gi18n.h>
typedef struct
......@@ -26,60 +26,60 @@ typedef struct
gchar *m_schema;
gchar *m_name;
gchar *m_fullname;
} GdaDdlBasePrivate;
} GdaDbBasePrivate;
/**
* SECTION:gda-ddl-base
* SECTION:gda-db-base
* @short_description: The basic class for all database objects
* @see_also: #GdaDdlTable, #GdaDdlView
* @see_also: #GdaDbTable, #GdaDbView
* @stability: Stable
* @include: libgda/libgda.h
*
* This is a basic class for database objects, e.g. #GdaDdlTable and #GdaDdlView. It is not common to
* This is a basic class for database objects, e.g. #GdaDbTable and #GdaDbView. It is not common to
* use it directly.
*/
G_DEFINE_TYPE_WITH_PRIVATE (GdaDdlBase, gda_ddl_base, G_TYPE_OBJECT)
G_DEFINE_TYPE_WITH_PRIVATE (GdaDbBase, gda_db_base, G_TYPE_OBJECT)
/**
* gda_ddl_base_new:
* gda_db_base_new:
*
* Create a new #GdaDdlBase instance
* Create a new #GdaDbBase instance
*
* Returns: a new #GdaDdlBase instance
* Returns: a new #GdaDbBase instance
*/
GdaDdlBase*
gda_ddl_base_new (void)
GdaDbBase*
gda_db_base_new (void)
{
return g_object_new (GDA_TYPE_DDL_BASE, NULL);
return g_object_new (GDA_TYPE_DB_BASE, NULL);
}
static void
gda_ddl_base_finalize (GObject *object)
gda_db_base_finalize (GObject *object)
{
GdaDdlBase *self = (GdaDdlBase *)object;
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBase *self = (GdaDbBase *)object;
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
g_free (priv->m_catalog);
g_free (priv->m_schema);
g_free (priv->m_name);
g_free (priv->m_fullname);
G_OBJECT_CLASS (gda_ddl_base_parent_class)->finalize (object);
G_OBJECT_CLASS (gda_db_base_parent_class)->finalize (object);
}
static void
gda_ddl_base_class_init (GdaDdlBaseClass *klass)
gda_db_base_class_init (GdaDbBaseClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = gda_ddl_base_finalize;
object_class->finalize = gda_db_base_finalize;
}
static void
gda_ddl_base_init (GdaDdlBase *self)
gda_db_base_init (GdaDbBase *self)
{
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
priv->m_catalog = NULL;
priv->m_schema = NULL;
......@@ -88,8 +88,8 @@ gda_ddl_base_init (GdaDdlBase *self)
}
/**
* gda_ddl_base_set_names:
* @self: a #GdaDdlBase object
* gda_db_base_set_names:
* @self: a #GdaDbBase object
* @catalog: (nullable): a catalog name associated with the table
* @schema: (nullable): a schema name associated with the table
* @name: a table name associated with the table
......@@ -102,15 +102,15 @@ gda_ddl_base_init (GdaDdlBase *self)
* Since: 6.0
*/
void
gda_ddl_base_set_names (GdaDdlBase *self,
const gchar* catalog,
const gchar* schema,
const gchar* name)
gda_db_base_set_names (GdaDbBase *self,
const gchar* catalog,
const gchar* schema,
const gchar* name)
{
g_return_if_fail (self);
g_return_if_fail (name);
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
g_free (priv->m_name);
g_free (priv->m_schema);
......@@ -144,8 +144,8 @@ gda_ddl_base_set_names (GdaDdlBase *self,
}
/**
* gda_ddl_base_get_full_name:
* @self: an instance of #GdaDdlBase
* gda_db_base_get_full_name:
* @self: an instance of #GdaDbBase
*
* This method returns a full name in the format catalog.schema.name.
* If schema is %NULL but catalog and name are not, then only name is
......@@ -157,11 +157,11 @@ gda_ddl_base_set_names (GdaDdlBase *self,
* Since: 6.0
*/
const gchar*
gda_ddl_base_get_full_name (GdaDdlBase *self)
gda_db_base_get_full_name (GdaDbBase *self)
{
g_return_val_if_fail (self,NULL);
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
GString *fullnamestr = NULL;
......@@ -184,8 +184,8 @@ gda_ddl_base_get_full_name (GdaDdlBase *self)
}
/**
* gda_ddl_base_get_catalog:
* @self: a #GdaDdlBase object
* gda_db_base_get_catalog:
* @self: a #GdaDbBase object
*
* Returns current catalog name. The returned string should not be freed.
*
......@@ -194,18 +194,18 @@ gda_ddl_base_get_full_name (GdaDdlBase *self)
* Since: 6.0
*/
const gchar*
gda_ddl_base_get_catalog (GdaDdlBase *self)
gda_db_base_get_catalog (GdaDbBase *self)
{
g_return_val_if_fail (self,NULL);
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
return priv->m_catalog;
}
/**
* gda_ddl_base_get_schema:
* @self: GdaDdlBase object
* gda_db_base_get_schema:
* @self: GdaDbBase object
*
* Returns current schema name. The returned string should not be freed.
*
......@@ -214,18 +214,18 @@ gda_ddl_base_get_catalog (GdaDdlBase *self)
* Since: 6.0
*/
const gchar*
gda_ddl_base_get_schema (GdaDdlBase *self)
gda_db_base_get_schema (GdaDbBase *self)
{
g_return_val_if_fail (self,NULL);
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
return priv->m_schema;
}
/**
* gda_ddl_base_get_name:
* @self: GdaDdlBase object
* gda_db_base_get_name:
* @self: GdaDbBase object
*
* Returns current object name. The returned string should not be freed.
*
......@@ -234,18 +234,18 @@ gda_ddl_base_get_schema (GdaDdlBase *self)
* Since: 6.0
*/
const gchar*
gda_ddl_base_get_name (GdaDdlBase *self)
gda_db_base_get_name (GdaDbBase *self)
{
g_return_val_if_fail (self,NULL);
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
return priv->m_name;
}
/**
* gda_ddl_base_set_catalog:
* @self: a #GdaDdlBase instance
* gda_db_base_set_catalog:
* @self: a #GdaDbBase instance
* @catalog: Catalog name as a string
*
* Set catalog name
......@@ -253,20 +253,20 @@ gda_ddl_base_get_name (GdaDdlBase *self)
* Since: 6.0
*/
void
gda_ddl_base_set_catalog (GdaDdlBase *self,
const gchar *catalog)
gda_db_base_set_catalog (GdaDbBase *self,
const gchar *catalog)
{
g_return_if_fail (self);
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
g_free (priv->m_catalog);
priv->m_catalog = g_strdup (catalog);
}
/**
* gda_ddl_base_set_schema:
* @self: a #GdaDdlBase instance
* gda_db_base_set_schema:
* @self: a #GdaDbBase instance
* @schema: Schema name as a string
*
* Set object schema.
......@@ -274,20 +274,20 @@ gda_ddl_base_set_catalog (GdaDdlBase *self,
* Since: 6.0
*/
void
gda_ddl_base_set_schema (GdaDdlBase *self,
const gchar *schema)
gda_db_base_set_schema (GdaDbBase *self,
const gchar *schema)
{
g_return_if_fail (self);
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
g_free (priv->m_schema);
priv->m_schema = g_strdup (schema);
}
/**
* gda_ddl_base_set_name:
* @self: a #GdaDdlBase instance
* gda_db_base_set_name:
* @self: a #GdaDbBase instance
* @name: Object name as a string
*
* Set object name
......@@ -295,21 +295,21 @@ gda_ddl_base_set_schema (GdaDdlBase *self,
* Since: 6.0
*/
void
gda_ddl_base_set_name (GdaDdlBase *self,
const gchar *name)
gda_db_base_set_name (GdaDbBase *self,
const gchar *name)
{
g_return_if_fail (self);
GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
GdaDbBasePrivate *priv = gda_db_base_get_instance_private (self);
g_free (priv->m_name);
priv->m_name = g_strdup (name);
}
/**
* gda_ddl_base_compare:
* @a: first #GdaDdlBase object
* @b: second #GdaDdlBase object
* gda_db_base_compare:
* @a: first #GdaDbBase object
* @b: second #GdaDbBase object
*
* Compares two objects similar to g_strcmp().
*
......@@ -318,7 +318,8 @@ gda_ddl_base_set_name (GdaDdlBase *self,
* Since: 6.0
*/
gint