Mercurial > hg > ltpda-connection-manager
comparison README @ 2:b71833fb33ef
More details on the utils.mysql package.
author | Daniele Nicolodi <daniele@science.unitn.it> |
---|---|
date | Sun, 23 May 2010 22:09:23 +0200 |
parents | c4b57991935a |
children |
comparison
equal
deleted
inserted
replaced
1:c4b57991935a | 2:b71833fb33ef |
---|---|
158 | 158 |
159 ** Utilities | 159 ** Utilities |
160 | 160 |
161 *** utils.jmysql | 161 *** utils.jmysql |
162 | 162 |
163 Collection of utility functions for interfacing to a database from | 163 Package containing a collection of functions and classes for |
164 a pure matlab environment. Except connect() all the functions take | 164 interfacing to a database from a pure matlab environment. Except |
165 a java object implementing java.sql.Connection as first parameter. | 165 connect() all the functions take a java object implementing |
166 java.sql.Connection as first parameter. | |
167 | |
168 NOTE: Currently we use a MySQL database, however all the described | |
169 functions make no assumptions on the kind of database. It would be | |
170 fairly trivial to extend those to work on different databases, | |
171 exploiting the abstraction offered by the JDBC layer. In this case | |
172 a proper name for the package would be utils.db. | |
173 | |
174 | |
175 *** utils.jmysql.credentials | |
176 | |
177 A simple class for organizing, in a convenient way, the | |
178 credentials required to establish a connection to a database | |
179 server. | |
166 | 180 |
167 *** utils.jmysql.connect(hostname, database, username, password) | 181 *** utils.jmysql.connect(hostname, database, username, password) |
168 | 182 |
169 Return an object implementing the java.sql.Connection interface, | 183 Return an object implementing the java.sql.Connection interface, |
170 representing a connection to the given database, with the given | 184 representing a connection to the given database, with the given |