[libgda/libgda-vala] Fix typo on documentation. Added missing file to Makefile.am
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/libgda-vala] Fix typo on documentation. Added missing file to Makefile.am
- Date: Fri, 17 May 2013 02:34:59 +0000 (UTC)
commit ae074ada11180c223ac4e01d1b5f50662476050b
Author: Daniel Espinosa <esodan gmail com>
Date: Thu May 16 20:43:22 2013 -0500
Fix typo on documentation. Added missing file to Makefile.am
doc/mallard/gda-vala/C/Makefile.am | 1 +
.../gda-vala/C/db-field-info-interface.page | 48 ++++++++++----------
doc/mallard/gda-vala/C/db-table-interface.page | 42 +++++++++---------
3 files changed, 46 insertions(+), 45 deletions(-)
---
diff --git a/doc/mallard/gda-vala/C/Makefile.am b/doc/mallard/gda-vala/C/Makefile.am
index b6ba282..cd51fbb 100644
--- a/doc/mallard/gda-vala/C/Makefile.am
+++ b/doc/mallard/gda-vala/C/Makefile.am
@@ -6,6 +6,7 @@ DOC_PAGES = \
index.page \
interfaces.page \
db-table-interface.page \
+ db-field-info-interface.page \
record-class.page \
table-class.page
diff --git a/doc/mallard/gda-vala/C/db-field-info-interface.page
b/doc/mallard/gda-vala/C/db-field-info-interface.page
index 54904ac..e76b8be 100644
--- a/doc/mallard/gda-vala/C/db-field-info-interface.page
+++ b/doc/mallard/gda-vala/C/db-field-info-interface.page
@@ -36,18 +36,18 @@
This codes checks for compatibility between two table's fields definition.
</desc>
<code mime="text/x-c++src">
- Table a = new Table ();
- a.name = "user2"; // set to a database's table name
- a.connection = connection;
- a.update (); // Get definition from database metadata
- Table b = new Table ();
- b.name = "users"; // set to a database's table name
- b.connection = connection;
- b.update (); // Get definition from database metadata
- var aid = a.get_field ("id");
- var bid = b.get_field ("id");
- if (aid.compatible (bid))
- stdout.printf (@"You can copy data from field $(aid.name) to table
$(bid.name)");
+Table a = new Table ();
+a.name = "user2"; // set to a database's table name
+a.connection = connection;
+a.update (); // Get definition from database metadata
+Table b = new Table ();
+b.name = "users"; // set to a database's table name
+b.connection = connection;
+b.update (); // Get definition from database metadata
+var aid = a.get_field ("id");
+var bid = b.get_field ("id");
+if (aid.compatible (bid))
+ stdout.printf (@"You can copy data from field $(aid.name) to table $(bid.name)");
</code>
</listing>
</section>
@@ -71,20 +71,20 @@
defined in DbFieldInfo interface.</p>
<listing>
<desc>
- This codes checks for equivalency between two tables.
+ This codes checks for equivalency between a template and a database field.
</desc>
<code mime="text/x-c++src">
- Table a = new Table ();
- a.name = "pre-defined";
- create_definition (a); // See at Table class to see how define a table
- Table b = new Table ();
- b.name = "users"; // set to a database's table name
- b.connection = connection;
- b.update (); // Get definition from database metadata
- aid = a.get_field ("id");
- bid = b.get_field ("id");
- if (aid.equivalent (bid))
- stdout.printf (@"Database field $(bid.name) is based on template field
$(aid.name)");
+Table a = new Table ();
+a.name = "pre-defined";
+create_definition (a); // See at Table class to see how define a table
+Table b = new Table ();
+b.name = "users"; // set to a database's table name
+b.connection = connection;
+b.update (); // Get definition from database metadata
+aid = a.get_field ("id");
+bid = b.get_field ("id");
+if (aid.equivalent (bid))
+ stdout.printf (@"Database field $(bid.name) is based on template field $(aid.name)");
</code>
</listing>
</section>
diff --git a/doc/mallard/gda-vala/C/db-table-interface.page b/doc/mallard/gda-vala/C/db-table-interface.page
index 8475278..6d8dab0 100644
--- a/doc/mallard/gda-vala/C/db-table-interface.page
+++ b/doc/mallard/gda-vala/C/db-table-interface.page
@@ -35,20 +35,20 @@
<listing>
<desc>
This codes checks for compatibility between two tables.
- <code>create_definition()</code> is user defined method to initiate table
- a to add fiedls that will be used to check compatibility.
+ <code>create_definition()</code> is a user defined method to initiate a
+ table by adding fields definitions that will be used template.
</desc>
<code mime="text/x-c++src">
- Table a = new Table ();
- a.name = "user2"; // set to a database's table name
- a.connection = connection;
- a.update (); // Get definition from database metadata
- Table b = new Table ();
- b.name = "users"; // set to a database's table name
- b.connection = connection;
- b.update (); // Get definition from database metadata
- if (a.compatible (b))
- stdout.printf (@"You can copy data from table $(a.name) to table $(b.name)");
+Table a = new Table ();
+a.name = "user2"; // set to a database's table name
+a.connection = connection;
+a.update (); // Get definition from database metadata
+Table b = new Table ();
+b.name = "users"; // set to a database's table name
+b.connection = connection;
+b.update (); // Get definition from database metadata
+if (a.compatible (b))
+ stdout.printf (@"You can copy data from table $(a.name) to table $(b.name)");
</code>
</listing>
</section>
@@ -72,15 +72,15 @@
This codes checks for equivalency between two tables.
</desc>
<code mime="text/x-c++src">
- Table a = new Table ();
- a.name = "pre-defined";
- create_definition (a); // See at Table class to see how define a table
- Table b = new Table ();
- b.name = "users"; // set to a database's table name
- b.connection = connection;
- b.update (); // Get definition from database metadata
- if (a.equivalent (b))
- stdout.printf (@"Database table $(b.name) is based on template table
$(a.name)");
+Table a = new Table ();
+a.name = "pre-defined";
+create_definition (a); // See at Table class to see how define a table
+Table b = new Table ();
+b.name = "users"; // set to a database's table name
+b.connection = connection;
+b.update (); // Get definition from database metadata
+if (a.equivalent (b))
+ stdout.printf (@"Database table $(b.name) is based on template table $(a.name)");
</code>
</listing>
</section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]