[libgda] Renamed samples by examples
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Renamed samples by examples
- Date: Wed, 9 Mar 2016 21:34:11 +0000 (UTC)
commit 1c02122b94a9cbb8faffa0d9a25ca1e7a99ff735
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Mar 9 22:23:54 2016 +0100
Renamed samples by examples
Makefile.am | 168 ++++++++++----------
doc/C/Makefile.am | 4 +-
doc/C/gettingstarted.xml | 6 +-
doc/C/libgda-6.0-docs.sgml | 2 +-
doc/C/virtual.xml | 6 +-
{samples => examples}/AsyncExec/README | 0
{samples => examples}/AsyncExec/example.c | 0
{samples => examples}/BDB/README | 0
{samples => examples}/BDB/access-custom.c | 0
{samples => examples}/BDB/access-raw.c | 0
{samples => examples}/BDB/common.h | 0
{samples => examples}/BDB/custom-bdb-model.c | 0
{samples => examples}/BDB/custom-bdb-model.h | 0
{samples => examples}/BDB/fill.c | 0
{samples => examples}/Blobs/Makefile.cross.win32 | 0
{samples => examples}/Blobs/README | 0
{samples => examples}/Blobs/blobtest.c | 0
{samples => examples}/Blobs/testblob.db | Bin 3072 -> 3072 bytes
{samples => examples}/CustomUIPlugin/README | 0
.../CustomUIPlugin/custom-entry-password.c | 0
.../CustomUIPlugin/custom-entry-password.h | 0
.../CustomUIPlugin/custom-entry-password.xml | 0
{samples => examples}/CustomUIPlugin/libmain.c | 0
{samples => examples}/DDL/README | 0
{samples => examples}/DDL/ddl.c | 0
{samples => examples}/DirDataModel/README | 0
.../DirDataModel/find-duplicates.c | 0
{samples => examples}/F-Spot/README | 0
.../F-Spot/VirtualConnectionSetup.dia | Bin 2557 -> 2557 bytes
{samples => examples}/F-Spot/repair-path.c | 0
{samples => examples}/Gir/README | 0
{samples => examples}/Gir/dataproxy.py | 0
{samples => examples}/Gir/libgda.js | 0
{samples => examples}/Gir/meta_store.py | 0
{samples => examples}/LdapBrowser/README | 0
{samples => examples}/LdapBrowser/ldap-browser.c | 0
{samples => examples}/MetaStore/README | 0
{samples => examples}/MetaStore/background.c | 0
{samples => examples}/MetaStore/example.c | 0
.../example.c => examples/MetaStore/example.c.1 | 39 +++---
{samples => examples}/README | 6 +-
{samples => examples}/Report/README | 0
.../Report/customers-report-docbook.c | 0
.../Report/customers-report-rml.c | 0
.../Report/customers-report-rml.rml | 0
.../Report/customers-report-spec.xml | 0
{samples => examples}/Report/customers-report.c | 0
.../Report/schema-report-spec.xml | 0
{samples => examples}/Report/schema-report.c | 0
{samples => examples}/SimpleExample/README | 0
{samples => examples}/SimpleExample/example.c | 0
{samples => examples}/SimpleUIForm/README | 0
{samples => examples}/SimpleUIForm/ScreenShot.png | Bin 20545 -> 20545 bytes
{samples => examples}/SimpleUIForm/example.c | 0
{samples => examples}/SqlBuilder/README | 0
{samples => examples}/SqlBuilder/example.c | 0
{samples => examples}/SqlBuilder/example_cnc.c | 0
{samples => examples}/SqlParserConsole/README | 0
{samples => examples}/SqlParserConsole/console.c | 0
{samples => examples}/SqlParserConsole/graph.c | 0
{samples => examples}/SqlParserConsole/graph.h | 0
{samples => examples}/TableCopy/README | 0
{samples => examples}/TableCopy/common.c | 0
{samples => examples}/TableCopy/common.h | 0
.../TableCopy/table-copy-easier.c | 0
{samples => examples}/TableCopy/table-copy.c | 0
{samples => examples}/Tree/README | 0
{samples => examples}/Tree/example.c | 0
{samples => examples}/Virtual/README | 0
{samples => examples}/Virtual/city.csv | 0
{samples => examples}/Virtual/country.csv | 0
{samples => examples}/Virtual/virtual-test.c | 0
{samples => examples}/WritableSelect/README | 0
{samples => examples}/WritableSelect/example.c | 0
{samples => examples}/XSLT/README | 0
{samples => examples}/XSLT/data.xml | 0
{samples => examples}/XSLT/data2.xml | 0
{samples => examples}/XSLT/test.xsl | 0
{samples => examples}/XSLT/transform.c | 0
{samples => examples}/vala/README | 4 +-
.../vala/SampleDataModelIterable.vala | 0
{samples => examples}/vala/SampleDataObject.vala | 0
libgda/sql-parser/gda-sql-statement.h | 2 +-
samples/AsyncExec/Makefile | 12 --
samples/BDB/Makefile | 24 ---
samples/Blobs/Makefile | 13 --
samples/CustomUIPlugin/Makefile | 29 ----
samples/DDL/Makefile | 13 --
samples/DirDataModel/Makefile | 12 --
samples/F-Spot/Makefile | 12 --
samples/Gir/Makefile | 6 -
samples/LdapBrowser/Makefile | 12 --
samples/Makefile | 12 --
samples/MetaStore/Makefile | 15 --
samples/Report/Makefile | 37 -----
samples/SimpleExample/Makefile | 13 --
samples/SimpleUIForm/Makefile | 15 --
samples/SqlBuilder/Makefile | 16 --
samples/SqlParserConsole/Makefile | 31 ----
samples/TableCopy/Makefile | 19 ---
samples/Tree/Makefile | 12 --
samples/Virtual/Makefile | 10 --
samples/WritableSelect/Makefile | 13 --
samples/XSLT/Makefile | 13 --
samples/vala/Makefile | 33 ----
105 files changed, 119 insertions(+), 490 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index d42eebf..1104b64 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,90 +32,90 @@ SUBDIRS = \
doc
example_files = \
- samples/SimpleExample/Makefile \
- samples/SimpleExample/example.c \
- samples/SimpleExample/README \
- samples/TableCopy/common.h \
- samples/TableCopy/common.c \
- samples/TableCopy/Makefile \
- samples/TableCopy/table-copy.c \
- samples/TableCopy/table-copy-easier.c \
- samples/TableCopy/README \
- samples/BDB/Makefile \
- samples/BDB/README \
- samples/BDB/access-custom.c \
- samples/BDB/access-raw.c \
- samples/BDB/common.h \
- samples/BDB/custom-bdb-model.c \
- samples/BDB/custom-bdb-model.h \
- samples/BDB/fill.c \
- samples/DirDataModel/Makefile \
- samples/DirDataModel/README \
- samples/DirDataModel/find-duplicates.c \
- samples/DDL/Makefile \
- samples/DDL/README \
- samples/DDL/ddl.c \
- samples/F-Spot/Makefile \
- samples/F-Spot/README \
- samples/F-Spot/VirtualConnectionSetup.dia \
- samples/F-Spot/repair-path.c \
- samples/README \
- samples/Report/customers-report.c \
- samples/Report/customers-report-docbook.c \
- samples/Report/customers-report-rml.c \
- samples/Report/customers-report-rml.rml \
- samples/Report/customers-report-spec.xml \
- samples/Report/schema-report.c \
- samples/Report/schema-report-spec.xml \
- samples/Report/Makefile \
- samples/Report/README \
- samples/Virtual/Makefile \
- samples/Virtual/README \
- samples/Virtual/city.csv \
- samples/Virtual/country.csv \
- samples/Virtual/virtual-test.c \
- samples/XSLT/Makefile \
- samples/XSLT/README \
- samples/XSLT/data.xml \
- samples/XSLT/data2.xml \
- samples/XSLT/test.xsl \
- samples/XSLT/transform.c \
- samples/MetaStore/Makefile \
- samples/MetaStore/README \
- samples/MetaStore/background.c \
- samples/MetaStore/example.c \
- samples/Tree/Makefile \
- samples/Tree/README \
- samples/Tree/example.c \
- samples/SqlBuilder/Makefile \
- samples/SqlBuilder/README \
- samples/SqlBuilder/example.c \
- samples/AsyncExec/Makefile \
- samples/AsyncExec/README \
- samples/AsyncExec/example.c \
- samples/WritableSelect/README \
- samples/WritableSelect/example.c \
- samples/WritableSelect/Makefile \
- samples/SimpleUIForm/README \
- samples/SimpleUIForm/example.c \
- samples/SimpleUIForm/Makefile \
- samples/SimpleUIForm/ScreenShot.png \
- samples/Blobs/blobtest.c \
- samples/Blobs/Makefile \
- samples/Blobs/README \
- samples/Blobs/testblob.db \
- samples/Gir/Makefile \
- samples/Gir/README \
- samples/Gir/libgda.js \
- samples/LdapBrowser/Makefile \
- samples/LdapBrowser/README \
- samples/LdapBrowser/ldap-browser.c \
- samples/CustomUIPlugin/Makefile \
- samples/CustomUIPlugin/README \
- samples/CustomUIPlugin/custom-entry-password.c \
- samples/CustomUIPlugin/custom-entry-password.h \
- samples/CustomUIPlugin/custom-entry-password.xml \
- samples/CustomUIPlugin/libmain.c
+ examples/SimpleExample/Makefile \
+ examples/SimpleExample/example.c \
+ examples/SimpleExample/README \
+ examples/TableCopy/common.h \
+ examples/TableCopy/common.c \
+ examples/TableCopy/Makefile \
+ examples/TableCopy/table-copy.c \
+ examples/TableCopy/table-copy-easier.c \
+ examples/TableCopy/README \
+ examples/BDB/Makefile \
+ examples/BDB/README \
+ examples/BDB/access-custom.c \
+ examples/BDB/access-raw.c \
+ examples/BDB/common.h \
+ examples/BDB/custom-bdb-model.c \
+ examples/BDB/custom-bdb-model.h \
+ examples/BDB/fill.c \
+ examples/DirDataModel/Makefile \
+ examples/DirDataModel/README \
+ examples/DirDataModel/find-duplicates.c \
+ examples/DDL/Makefile \
+ examples/DDL/README \
+ examples/DDL/ddl.c \
+ examples/F-Spot/Makefile \
+ examples/F-Spot/README \
+ examples/F-Spot/VirtualConnectionSetup.dia \
+ examples/F-Spot/repair-path.c \
+ examples/README \
+ examples/Report/customers-report.c \
+ examples/Report/customers-report-docbook.c \
+ examples/Report/customers-report-rml.c \
+ examples/Report/customers-report-rml.rml \
+ examples/Report/customers-report-spec.xml \
+ examples/Report/schema-report.c \
+ examples/Report/schema-report-spec.xml \
+ examples/Report/Makefile \
+ examples/Report/README \
+ examples/Virtual/Makefile \
+ examples/Virtual/README \
+ examples/Virtual/city.csv \
+ examples/Virtual/country.csv \
+ examples/Virtual/virtual-test.c \
+ examples/XSLT/Makefile \
+ examples/XSLT/README \
+ examples/XSLT/data.xml \
+ examples/XSLT/data2.xml \
+ examples/XSLT/test.xsl \
+ examples/XSLT/transform.c \
+ examples/MetaStore/Makefile \
+ examples/MetaStore/README \
+ examples/MetaStore/background.c \
+ examples/MetaStore/example.c \
+ examples/Tree/Makefile \
+ examples/Tree/README \
+ examples/Tree/example.c \
+ examples/SqlBuilder/Makefile \
+ examples/SqlBuilder/README \
+ examples/SqlBuilder/example.c \
+ examples/AsyncExec/Makefile \
+ examples/AsyncExec/README \
+ examples/AsyncExec/example.c \
+ examples/WritableSelect/README \
+ examples/WritableSelect/example.c \
+ examples/WritableSelect/Makefile \
+ examples/SimpleUIForm/README \
+ examples/SimpleUIForm/example.c \
+ examples/SimpleUIForm/Makefile \
+ examples/SimpleUIForm/ScreenShot.png \
+ examples/Blobs/blobtest.c \
+ examples/Blobs/Makefile \
+ examples/Blobs/README \
+ examples/Blobs/testblob.db \
+ examples/Gir/Makefile \
+ examples/Gir/README \
+ examples/Gir/libgda.js \
+ examples/LdapBrowser/Makefile \
+ examples/LdapBrowser/README \
+ examples/LdapBrowser/ldap-browser.c \
+ examples/CustomUIPlugin/Makefile \
+ examples/CustomUIPlugin/README \
+ examples/CustomUIPlugin/custom-entry-password.c \
+ examples/CustomUIPlugin/custom-entry-password.h \
+ examples/CustomUIPlugin/custom-entry-password.xml \
+ examples/CustomUIPlugin/libmain.c
EXTRA_DIST = \
COPYING \
diff --git a/doc/C/Makefile.am b/doc/C/Makefile.am
index d5ddf79..37d1e2c 100644
--- a/doc/C/Makefile.am
+++ b/doc/C/Makefile.am
@@ -27,7 +27,7 @@ CFILE_GLOB=
# Header files to ignore when scanning
IGNORE_HFILES= gda-marshal.h gda-custom-marshal.h gda-enum-types.h sqlite3.h csv.h md5.h \
jni-wrapper.h gda-jdbc-recordset.h gda-jdbc-blob-op.h gda-jdbc-provider.h gda-jdbc-pstmt.h \
- popup-container.h providers tools control-center tests samples plugins tmp
+ popup-container.h providers tools control-center tests examples plugins tmp
# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
@@ -51,7 +51,7 @@ GTKDOC_LIBS += $(GTK_LIBS) \
endif
# Extra options to supply to gtkdoc-mkdb
-MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=gda --ignore-files="parser.c delimiter.c
binreloc.c libcsv.c md5c.c providers tools control-center tests tmp samples plugins"
+MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=gda --ignore-files="parser.c delimiter.c
binreloc.c libcsv.c md5c.c providers tools control-center tests tmp examples plugins"
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
content_files = fdl-appendix.sgml version.xml builddate.xml
diff --git a/doc/C/gettingstarted.xml b/doc/C/gettingstarted.xml
index 3559356..8fcf104 100644
--- a/doc/C/gettingstarted.xml
+++ b/doc/C/gettingstarted.xml
@@ -337,7 +337,7 @@ show_data_model (GdaDataModel *dm)
SQLite database in the current
directory, creates a "products" table,add a few rows to it, and then displays its contents. The
example uses
an SQLite database as it does not require any server setup and can thus be run as-is.
- That example can be found in the <filename>samples/SimpleExample/example.c</filename>.
+ That example can be found in the <filename>examples/SimpleExample/example.c</filename>.
</para>
<para>
To compile it, run:
@@ -457,7 +457,7 @@ create_table (GdaConnection *cnc)
<sect1 id="blobs_example">
<title>Binary large objects (BLOBs) example</title>
<para>
- The following example is available in the <filename>samples/Blobs</filename> source directory
+ The following example is available in the <filename>examples/Blobs</filename> source directory
and illustrate how to manipulate BLOBs. This test program offers 2 operations which are to
store the contents of a file to the database (which returns the ID of the stored data), and to
fetch a stored data from the database from its ID (which creates a fetched_<ID> file).
@@ -473,7 +473,7 @@ create_table (GdaConnection *cnc)
<para>
There are other sources of examples in &LIBGDA;'s source code:
<itemizedlist>
- <listitem><para>in the <filename>samples/</filename> directory with complete
examples</para></listitem>
+ <listitem><para>in the <filename>examples/</filename> directory with complete
examples</para></listitem>
<listitem><para>in the <filename>tools/</filename> directory where &LIBGDA;'s tools exist and are
also a good starting point</para></listitem>
</itemizedlist>
diff --git a/doc/C/libgda-6.0-docs.sgml b/doc/C/libgda-6.0-docs.sgml
index d843f70..5fb8fb5 100644
--- a/doc/C/libgda-6.0-docs.sgml
+++ b/doc/C/libgda-6.0-docs.sgml
@@ -1560,7 +1560,7 @@ g_object_unref (eng);
</sect1>
</gda_report_section>
</article>]]></programlisting>
- For a more detailed example, have a look at the <filename class="directory">samples/Report</filename>
of &LIBGDA;'s
+ For a more detailed example, have a look at the <filename
class="directory">examples/Report</filename> of &LIBGDA;'s
sources.
</para>
</chapter>
diff --git a/doc/C/virtual.xml b/doc/C/virtual.xml
index 6dfc036..7bf514c 100644
--- a/doc/C/virtual.xml
+++ b/doc/C/virtual.xml
@@ -34,9 +34,9 @@ cnc = gda_virtual_connection_open (provider, NULL);
<para>
Some examples of virtual connections usage can be found in the source distribution of Libgda in:
<itemizedlist>
- <listitem><para><filename class="directory">samples/Virtual</filename></para></listitem>
- <listitem><para><filename class="directory">samples/DirDataModel</filename></para></listitem>
- <listitem><para><filename class="directory">samples/F-Spot</filename></para></listitem>
+ <listitem><para><filename class="directory">examples/Virtual</filename></para></listitem>
+ <listitem><para><filename class="directory">examples/DirDataModel</filename></para></listitem>
+ <listitem><para><filename class="directory">examples/F-Spot</filename></para></listitem>
<listitem><para><filename class="directory">testing/virtual-test.c</filename></para></listitem>
<listitem><para><filename class="directory">testing/virtual-test-2.c</filename></para></listitem>
</itemizedlist>
diff --git a/samples/AsyncExec/README b/examples/AsyncExec/README
similarity index 100%
rename from samples/AsyncExec/README
rename to examples/AsyncExec/README
diff --git a/samples/AsyncExec/example.c b/examples/AsyncExec/example.c
similarity index 100%
rename from samples/AsyncExec/example.c
rename to examples/AsyncExec/example.c
diff --git a/samples/BDB/README b/examples/BDB/README
similarity index 100%
rename from samples/BDB/README
rename to examples/BDB/README
diff --git a/samples/BDB/access-custom.c b/examples/BDB/access-custom.c
similarity index 100%
rename from samples/BDB/access-custom.c
rename to examples/BDB/access-custom.c
diff --git a/samples/BDB/access-raw.c b/examples/BDB/access-raw.c
similarity index 100%
rename from samples/BDB/access-raw.c
rename to examples/BDB/access-raw.c
diff --git a/samples/BDB/common.h b/examples/BDB/common.h
similarity index 100%
rename from samples/BDB/common.h
rename to examples/BDB/common.h
diff --git a/samples/BDB/custom-bdb-model.c b/examples/BDB/custom-bdb-model.c
similarity index 100%
rename from samples/BDB/custom-bdb-model.c
rename to examples/BDB/custom-bdb-model.c
diff --git a/samples/BDB/custom-bdb-model.h b/examples/BDB/custom-bdb-model.h
similarity index 100%
rename from samples/BDB/custom-bdb-model.h
rename to examples/BDB/custom-bdb-model.h
diff --git a/samples/BDB/fill.c b/examples/BDB/fill.c
similarity index 100%
rename from samples/BDB/fill.c
rename to examples/BDB/fill.c
diff --git a/samples/Blobs/Makefile.cross.win32 b/examples/Blobs/Makefile.cross.win32
similarity index 100%
rename from samples/Blobs/Makefile.cross.win32
rename to examples/Blobs/Makefile.cross.win32
diff --git a/samples/Blobs/README b/examples/Blobs/README
similarity index 100%
rename from samples/Blobs/README
rename to examples/Blobs/README
diff --git a/samples/Blobs/blobtest.c b/examples/Blobs/blobtest.c
similarity index 100%
rename from samples/Blobs/blobtest.c
rename to examples/Blobs/blobtest.c
diff --git a/samples/CustomUIPlugin/README b/examples/CustomUIPlugin/README
similarity index 100%
rename from samples/CustomUIPlugin/README
rename to examples/CustomUIPlugin/README
diff --git a/samples/CustomUIPlugin/custom-entry-password.c b/examples/CustomUIPlugin/custom-entry-password.c
similarity index 100%
rename from samples/CustomUIPlugin/custom-entry-password.c
rename to examples/CustomUIPlugin/custom-entry-password.c
diff --git a/samples/CustomUIPlugin/custom-entry-password.h b/examples/CustomUIPlugin/custom-entry-password.h
similarity index 100%
rename from samples/CustomUIPlugin/custom-entry-password.h
rename to examples/CustomUIPlugin/custom-entry-password.h
diff --git a/samples/CustomUIPlugin/custom-entry-password.xml
b/examples/CustomUIPlugin/custom-entry-password.xml
similarity index 100%
rename from samples/CustomUIPlugin/custom-entry-password.xml
rename to examples/CustomUIPlugin/custom-entry-password.xml
diff --git a/samples/CustomUIPlugin/libmain.c b/examples/CustomUIPlugin/libmain.c
similarity index 100%
rename from samples/CustomUIPlugin/libmain.c
rename to examples/CustomUIPlugin/libmain.c
diff --git a/samples/DDL/README b/examples/DDL/README
similarity index 100%
rename from samples/DDL/README
rename to examples/DDL/README
diff --git a/samples/DDL/ddl.c b/examples/DDL/ddl.c
similarity index 100%
rename from samples/DDL/ddl.c
rename to examples/DDL/ddl.c
diff --git a/samples/DirDataModel/README b/examples/DirDataModel/README
similarity index 100%
rename from samples/DirDataModel/README
rename to examples/DirDataModel/README
diff --git a/samples/DirDataModel/find-duplicates.c b/examples/DirDataModel/find-duplicates.c
similarity index 100%
rename from samples/DirDataModel/find-duplicates.c
rename to examples/DirDataModel/find-duplicates.c
diff --git a/samples/F-Spot/README b/examples/F-Spot/README
similarity index 100%
rename from samples/F-Spot/README
rename to examples/F-Spot/README
diff --git a/samples/F-Spot/repair-path.c b/examples/F-Spot/repair-path.c
similarity index 100%
rename from samples/F-Spot/repair-path.c
rename to examples/F-Spot/repair-path.c
diff --git a/samples/Gir/README b/examples/Gir/README
similarity index 100%
rename from samples/Gir/README
rename to examples/Gir/README
diff --git a/samples/Gir/dataproxy.py b/examples/Gir/dataproxy.py
similarity index 100%
rename from samples/Gir/dataproxy.py
rename to examples/Gir/dataproxy.py
diff --git a/samples/Gir/libgda.js b/examples/Gir/libgda.js
similarity index 100%
rename from samples/Gir/libgda.js
rename to examples/Gir/libgda.js
diff --git a/samples/Gir/meta_store.py b/examples/Gir/meta_store.py
similarity index 100%
rename from samples/Gir/meta_store.py
rename to examples/Gir/meta_store.py
diff --git a/samples/LdapBrowser/README b/examples/LdapBrowser/README
similarity index 100%
rename from samples/LdapBrowser/README
rename to examples/LdapBrowser/README
diff --git a/samples/LdapBrowser/ldap-browser.c b/examples/LdapBrowser/ldap-browser.c
similarity index 100%
rename from samples/LdapBrowser/ldap-browser.c
rename to examples/LdapBrowser/ldap-browser.c
diff --git a/samples/MetaStore/README b/examples/MetaStore/README
similarity index 100%
rename from samples/MetaStore/README
rename to examples/MetaStore/README
diff --git a/samples/MetaStore/background.c b/examples/MetaStore/background.c
similarity index 100%
rename from samples/MetaStore/background.c
rename to examples/MetaStore/background.c
diff --git a/samples/MetaStore/example.c b/examples/MetaStore/example.c
similarity index 100%
copy from samples/MetaStore/example.c
copy to examples/MetaStore/example.c
diff --git a/samples/MetaStore/example.c b/examples/MetaStore/example.c.1
similarity index 75%
rename from samples/MetaStore/example.c
rename to examples/MetaStore/example.c.1
index f9a7c12..cd32bf5 100644
--- a/samples/MetaStore/example.c
+++ b/examples/MetaStore/example.c.1
@@ -1,21 +1,3 @@
-/*
- * Copyright (C) 2009 - 2012 Vivien Malerba <malerba gnome-db org>
- * Copyright (C) 2012 Murray Cumming <murrayc murrayc com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
#include <libgda/libgda.h>
static const gchar* TABLE_NAME = "customers";
@@ -77,7 +59,7 @@ main (int argc, char *argv[])
list_table_columns (data);
g_object_unref (data);
- /* Request partial update for the table we are interested in
+ /* Request partial update for the table we are interrested in
* the GdaMetaContext specifies to update the "_tables" table, where the "table_name"
* attribute is TABLE_NAME */
g_print ("\nPartial metastore update for table '%s'...\n", TABLE_NAME);
@@ -89,6 +71,25 @@ main (int argc, char *argv[])
if (!gda_connection_update_meta_store (connection, &mcontext, &error))
return -1;
+ GdaMetaContext mcontext3 = {"_columns", 1, NULL, NULL};
+ mcontext3.column_names = g_new (gchar *, 2);
+ mcontext3.column_names[0] = "table_name";
+ mcontext3.column_names[1] = "column_name";
+ mcontext3.column_values = g_new (GValue *, 2);
+ g_value_set_string ((mcontext3.column_values[0] = gda_value_new (G_TYPE_STRING)), "locations");
+ g_value_set_string ((mcontext3.column_values[1] = gda_value_new (G_TYPE_STRING)), "city");
+ if (!gda_connection_update_meta_store (connection, &mcontext3, &error))
+ return -1;
+
+ data = gda_connection_get_meta_store_data (connection, GDA_CONNECTION_META_FIELDS, &error, 2,
+ "name", mcontext3.column_values[0],
+ "field_name", mcontext3.column_values[1]);
+ if (!data)
+ g_print ("==> ERROR %s\n", error->message);
+ else
+ gda_data_model_dump (data, NULL);
+
+
/* Query the same information about the TABLE_NAME table's columns
* this time there should be some information */
data = gda_connection_get_meta_store_data (connection, GDA_CONNECTION_META_FIELDS, &error, 1,
diff --git a/samples/README b/examples/README
similarity index 94%
rename from samples/README
rename to examples/README
index bae3c9a..a366661 100644
--- a/samples/README
+++ b/examples/README
@@ -1,8 +1,8 @@
-libgda samples
---------------
+libgda's examples
+-----------------
The objective here is to give to the
-developer using libgda quick samples in order she
+developer using libgda quick examples in order she
could use as soon as possible the technology.
Currently the contents are:
diff --git a/samples/Report/README b/examples/Report/README
similarity index 100%
rename from samples/Report/README
rename to examples/Report/README
diff --git a/samples/Report/customers-report-docbook.c b/examples/Report/customers-report-docbook.c
similarity index 100%
rename from samples/Report/customers-report-docbook.c
rename to examples/Report/customers-report-docbook.c
diff --git a/samples/Report/customers-report-rml.c b/examples/Report/customers-report-rml.c
similarity index 100%
rename from samples/Report/customers-report-rml.c
rename to examples/Report/customers-report-rml.c
diff --git a/samples/Report/customers-report-rml.rml b/examples/Report/customers-report-rml.rml
similarity index 100%
rename from samples/Report/customers-report-rml.rml
rename to examples/Report/customers-report-rml.rml
diff --git a/samples/Report/customers-report-spec.xml b/examples/Report/customers-report-spec.xml
similarity index 100%
rename from samples/Report/customers-report-spec.xml
rename to examples/Report/customers-report-spec.xml
diff --git a/samples/Report/customers-report.c b/examples/Report/customers-report.c
similarity index 100%
rename from samples/Report/customers-report.c
rename to examples/Report/customers-report.c
diff --git a/samples/Report/schema-report-spec.xml b/examples/Report/schema-report-spec.xml
similarity index 100%
rename from samples/Report/schema-report-spec.xml
rename to examples/Report/schema-report-spec.xml
diff --git a/samples/Report/schema-report.c b/examples/Report/schema-report.c
similarity index 100%
rename from samples/Report/schema-report.c
rename to examples/Report/schema-report.c
diff --git a/samples/SimpleExample/README b/examples/SimpleExample/README
similarity index 100%
rename from samples/SimpleExample/README
rename to examples/SimpleExample/README
diff --git a/samples/SimpleExample/example.c b/examples/SimpleExample/example.c
similarity index 100%
rename from samples/SimpleExample/example.c
rename to examples/SimpleExample/example.c
diff --git a/samples/SimpleUIForm/README b/examples/SimpleUIForm/README
similarity index 100%
rename from samples/SimpleUIForm/README
rename to examples/SimpleUIForm/README
diff --git a/samples/SimpleUIForm/example.c b/examples/SimpleUIForm/example.c
similarity index 100%
rename from samples/SimpleUIForm/example.c
rename to examples/SimpleUIForm/example.c
diff --git a/samples/SqlBuilder/README b/examples/SqlBuilder/README
similarity index 100%
rename from samples/SqlBuilder/README
rename to examples/SqlBuilder/README
diff --git a/samples/SqlBuilder/example.c b/examples/SqlBuilder/example.c
similarity index 100%
rename from samples/SqlBuilder/example.c
rename to examples/SqlBuilder/example.c
diff --git a/samples/SqlBuilder/example_cnc.c b/examples/SqlBuilder/example_cnc.c
similarity index 100%
rename from samples/SqlBuilder/example_cnc.c
rename to examples/SqlBuilder/example_cnc.c
diff --git a/samples/SqlParserConsole/README b/examples/SqlParserConsole/README
similarity index 100%
rename from samples/SqlParserConsole/README
rename to examples/SqlParserConsole/README
diff --git a/samples/SqlParserConsole/console.c b/examples/SqlParserConsole/console.c
similarity index 100%
rename from samples/SqlParserConsole/console.c
rename to examples/SqlParserConsole/console.c
diff --git a/samples/SqlParserConsole/graph.c b/examples/SqlParserConsole/graph.c
similarity index 100%
rename from samples/SqlParserConsole/graph.c
rename to examples/SqlParserConsole/graph.c
diff --git a/samples/SqlParserConsole/graph.h b/examples/SqlParserConsole/graph.h
similarity index 100%
rename from samples/SqlParserConsole/graph.h
rename to examples/SqlParserConsole/graph.h
diff --git a/samples/TableCopy/README b/examples/TableCopy/README
similarity index 100%
rename from samples/TableCopy/README
rename to examples/TableCopy/README
diff --git a/samples/TableCopy/common.c b/examples/TableCopy/common.c
similarity index 100%
rename from samples/TableCopy/common.c
rename to examples/TableCopy/common.c
diff --git a/samples/TableCopy/common.h b/examples/TableCopy/common.h
similarity index 100%
rename from samples/TableCopy/common.h
rename to examples/TableCopy/common.h
diff --git a/samples/TableCopy/table-copy-easier.c b/examples/TableCopy/table-copy-easier.c
similarity index 100%
rename from samples/TableCopy/table-copy-easier.c
rename to examples/TableCopy/table-copy-easier.c
diff --git a/samples/TableCopy/table-copy.c b/examples/TableCopy/table-copy.c
similarity index 100%
rename from samples/TableCopy/table-copy.c
rename to examples/TableCopy/table-copy.c
diff --git a/samples/Tree/README b/examples/Tree/README
similarity index 100%
rename from samples/Tree/README
rename to examples/Tree/README
diff --git a/samples/Tree/example.c b/examples/Tree/example.c
similarity index 100%
rename from samples/Tree/example.c
rename to examples/Tree/example.c
diff --git a/samples/Virtual/README b/examples/Virtual/README
similarity index 100%
rename from samples/Virtual/README
rename to examples/Virtual/README
diff --git a/samples/Virtual/city.csv b/examples/Virtual/city.csv
similarity index 100%
rename from samples/Virtual/city.csv
rename to examples/Virtual/city.csv
diff --git a/samples/Virtual/country.csv b/examples/Virtual/country.csv
similarity index 100%
rename from samples/Virtual/country.csv
rename to examples/Virtual/country.csv
diff --git a/samples/Virtual/virtual-test.c b/examples/Virtual/virtual-test.c
similarity index 100%
rename from samples/Virtual/virtual-test.c
rename to examples/Virtual/virtual-test.c
diff --git a/samples/WritableSelect/README b/examples/WritableSelect/README
similarity index 100%
rename from samples/WritableSelect/README
rename to examples/WritableSelect/README
diff --git a/samples/WritableSelect/example.c b/examples/WritableSelect/example.c
similarity index 100%
rename from samples/WritableSelect/example.c
rename to examples/WritableSelect/example.c
diff --git a/samples/XSLT/README b/examples/XSLT/README
similarity index 100%
rename from samples/XSLT/README
rename to examples/XSLT/README
diff --git a/samples/XSLT/data.xml b/examples/XSLT/data.xml
similarity index 100%
rename from samples/XSLT/data.xml
rename to examples/XSLT/data.xml
diff --git a/samples/XSLT/data2.xml b/examples/XSLT/data2.xml
similarity index 100%
rename from samples/XSLT/data2.xml
rename to examples/XSLT/data2.xml
diff --git a/samples/XSLT/test.xsl b/examples/XSLT/test.xsl
similarity index 100%
rename from samples/XSLT/test.xsl
rename to examples/XSLT/test.xsl
diff --git a/samples/XSLT/transform.c b/examples/XSLT/transform.c
similarity index 100%
rename from samples/XSLT/transform.c
rename to examples/XSLT/transform.c
diff --git a/samples/vala/README b/examples/vala/README
similarity index 96%
rename from samples/vala/README
rename to examples/vala/README
index af44a8c..2736290 100644
--- a/samples/vala/README
+++ b/examples/vala/README
@@ -21,7 +21,7 @@ EXAMPLES
EXAMPLE 1: GdaData.Object
-samples/vala/SampleDataObject:
+examples/vala/SampleDataObject:
This shows how to create a GdaData.Object derived class and how to use its methods for get, update and save
values.
@@ -49,7 +49,7 @@ your program (maybe a different thread or process accessing the database) modify
EXAMPLE 2: GdaData.DataModelIterable
-samples/vala/SampleDataModelIterable: This shows how to use Gee
+examples/vala/SampleDataModelIterable: This shows how to use Gee
This shows how to create a GdaData.DataModelIterable object using a Gda.DataModel. Now you can use any Gee
Collection interfaces for Traversable, Iterable and Collection, along with all Gda.DataModel API, because it
diff --git a/samples/vala/SampleDataModelIterable.vala b/examples/vala/SampleDataModelIterable.vala
similarity index 100%
rename from samples/vala/SampleDataModelIterable.vala
rename to examples/vala/SampleDataModelIterable.vala
diff --git a/samples/vala/SampleDataObject.vala b/examples/vala/SampleDataObject.vala
similarity index 100%
rename from samples/vala/SampleDataObject.vala
rename to examples/vala/SampleDataObject.vala
diff --git a/libgda/sql-parser/gda-sql-statement.h b/libgda/sql-parser/gda-sql-statement.h
index 682ff02..0ba1f9e 100644
--- a/libgda/sql-parser/gda-sql-statement.h
+++ b/libgda/sql-parser/gda-sql-statement.h
@@ -50,7 +50,7 @@ G_BEGIN_DECLS
* </caption>
*</mediaobject>
*
- * The samples/SqlParserConsole directory of &LIBGDA;'s sources contains a small utility
+ * The examples/SqlParserConsole directory of &LIBGDA;'s sources contains a small utility
* to display statements' structures as a graph (using the GraphViz language). It has been used to
* provide the examples in this section of the documentation.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]