[ruby-gnome2-doc-cvs] [Hiki] update - Gda::Connection

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2005年 3月 5日 (土) 06:17:15 JST


-------------------------
REMOTE_ADDR = 82.239.64.142
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki        URL = http://ruby-gnome2.sourceforge.jp/cgi-bin/hiki/hiki.cgi?Gda%3A%3AConnection
-------------------------
@@ -38,6 +38,13 @@
     * name: name of the database to switch to.  
     * Returns: true if successful, false otherwise.
 
+--- clear_errors
+    This method lets you clear the list of Gda::Error's of the
+    current connection. This is useful to reuse a Gda::Connection
+    because next uses of Gda::Connection#errors will return an empty
+    list.
+    * Returns: self.
+
 --- client
     Gets the Gda::Client object associated with a connection. This is always the
     client that created the connection, as returned by
@@ -74,6 +81,19 @@
     * name: database name.  
     * Returns: true if successful, false otherwise.
 
+--- create_table(name, attributes)
+    Creates a table on the current connection from the given set of fields.
+    * name: the name of the table to create. 
+    * attributes: an array of Gda::FieldAttributes objects.  
+    * Returns: true if successful, false otherwise.
+
 --- database
     This method returns the name of the currently active database in the connection.
     * Returns: the name of the currently active database in the connection.
@@ -83,6 +96,24 @@
     * name: database name.  
     * Returns: true if successful, false otherwise.
 
+--- drop_table(name)
+    Drops a table from the database.
+    * name: the name of the table to drop.  
+    * Returns: true if successful, false otherwise.
+
 --- dsn
     This method returns the data source name the connection object is connected to.
     * Returns: the data source name the connection object is connected to.
@@ -91,6 +109,30 @@
     Retrieves a list of the last errors ocurred in the connection.
     * Returns: an Array of Gda::Error objects.
 
+--- execute(cmd, params=nil)
+    Synonym for Gda::Connection#execute_single_command.
+    * cmd: a Gda::Command object. 
+    * params: parameters, as a Gda::ParameterList object.  
+    * Returns: a Gda::DataModel containing the data returned by the data source, or nil on error.
+
 --- execute_command(cmd, params=nil)
     Executes a command on the underlying data source.
     This method provides the way to send several commands at once to the data
@@ -145,6 +169,34 @@
 --- provider
     This method returns the provider ID used to open this connection.
     * Returns: the provider ID used to open this connection.
+
+--- reset!
+    Resets the connection.
+    * Returns: true if successful, false otherwise.
 
 --- rollback_transaction(xaction)
     Rollbacks the given transaction. This means that all changes made to the





ruby-gnome2-cvs メーリングリストの案内
Back to archive index