X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fappendix.xml;h=16316b7b961c759b9e7f63b271b5914484642a53;hb=8e7d3ca04beea7c047f3634b05dba813ee903919;hp=3b0e553ef139721ee745ad2686383615cf4329ba;hpb=fab9ddccc9e48d6784f2b6baa044f41f8d5c7731;p=clsql.git diff --git a/doc/appendix.xml b/doc/appendix.xml index 3b0e553..16316b7 100644 --- a/doc/appendix.xml +++ b/doc/appendix.xml @@ -1,89 +1,18 @@ + %myents; ]> Database Back-ends - - MySQL - - Libraries - The MySQL back-end needs access to the MySQL C - client library (libmysqlclient.so). - The location of this library is specified - via *mysql-so-load-path*, which defaults - to /usr/lib/libmysqlclient.so. - Additional flags to ld needed for - linking are specified via *mysql-so-libraries*, - which defaults to ("-lc"). - - - - Initialization - - Use - -(asdf:operate 'asdf:load-op 'clsql-mysql) - - to load the MySQL back-end. The database type for the MySQL - back-end is :mysql. - - - - Connection Specification - - Syntax of connection-spec - (host db user password) - - - Description of connection-spec - - - host - - String representing the hostname or IP address - the MySQL server resides on, or nil - to indicate the localhost. - - - - db - - String representing the name of the database on - the server to connect to. - - - - user - - String representing the user name to use for - authentication, or nil to use the - current Unix user ID. - - - - password - - String representing the unencrypted password to - use for authentication, or nil if - the authentication record has an empty password - field. - - - - - - - PostgreSQL Libraries - The PostgreSQL back-end needs access to the PostgreSQL C + The PostgreSQL back-end requires the PostgreSQL C client library (libpq.so). The location of this library is specified via *postgresql-so-load-path*, which defaults @@ -105,13 +34,9 @@ Connection Specification Syntax of connection-spec - (host - db - user - password &optional - port - options - tty) + + (host db user password &optional port options tty) + Description of connection-spec @@ -207,13 +132,9 @@ Connection Specification Syntax of connection-spec - (host - db - user - password &optional - port - options - tty) + + (host db user password &optional port options tty) + Description of connection-spec @@ -284,21 +205,157 @@ + + MySQL + + Libraries + The &mysql; back-end requires the &mysql; C + client library (libmysqlclient.so). + The location of this library is specified + via *mysql-so-load-path*, which defaults + to /usr/lib/libmysqlclient.so. + Additional flags to ld needed for + linking are specified via *mysql-so-libraries*, + which defaults to ("-lc"). + + + + Initialization + + Use + +(asdf:operate 'asdf:load-op 'clsql-mysql) + + to load the &mysql; back-end. The database type for the MySQL + back-end is :mysql. + + + + Connection Specification + + Syntax of connection-spec + (host db user password) + + + Description of connection-spec + + + host + + String representing the hostname or IP address + the &mysql; server resides on, or nil + to indicate the localhost. + + + + db + + String representing the name of the database on + the server to connect to. + + + + user + + String representing the user name to use for + authentication, or nil to use the + current Unix user ID. + + + + password + + String representing the unencrypted password to + use for authentication, or nil if + the authentication record has an empty password + field. + + + + + + + + + &odbc; + + Libraries + + The &odbc; back-end requires access to an &odbc; driver + manager as well as &odbc; drivers for the underlying + database server. &clsql; has been tested with + unixODBC ODBC Driver Manager as + well as Microsoft's ODBC manager. These driver managers + have been tested with the + psqlODBC driver for + &postgresql; and the + MyODBC driver for &mysql;. + + + + Initialization + + Use + +(asdf:operate 'asdf:load-op 'clsql-odbc) + + to load the &odbc; back-end. The database type for the &odbc; + back-end is :odbc. + + + + Connection Specification + + Syntax of connection-spec + (dsn user password) + + + Description of connection-spec + + + dsn + + String representing the ODBC data source name. + + + + user + + String representing the user name to use for + authentication. + + + + password + + String representing the unencrypted password to + use for authentication. + + + + + + + - AODBC + &aodbc; - Libraries - The AODBC back-end requires access to the ODBC interface - of &acl;. + Libraries The &aodbc; back-end requires + access to the &odbc; interface of &acl; named DBI. This + interface is not available in the trial version of + &acl; Initialization Use +(require 'aodbc-v2) (asdf:operate 'asdf:load-op 'clsql-aodbc) - to load the MySQL back-end. The database type for the AODBC + to load the &aodbc; back-end. The database type for the &aodbc; back-end is :aodbc. @@ -306,9 +363,9 @@ Connection Specification Syntax of connection-spec - (dsn - user - password) + + (dsn user password) + Description of connection-spec @@ -338,4 +395,102 @@ + + &sqlite; + + Libraries The &sqlite; back-end requires + the &sqlite; shared library file. Its default file name is + /usr/lib/libsqlite.so. + + + Initialization + + Use + +(asdf:operate 'asdf:load-op 'clsql-sqlite) + + to load the &sqlite; back-end. The database type for the &sqlite; + back-end is :sqlite. + + + + Connection Specification + + Syntax of connection-spec + (filename) + + + Description of connection-spec + + + filename + + String representing the filename of the &sqlite; + database file. + + + + + + + + + Oracle + + Libraries + The &oracle; back-end requires the &oracle; OCI client + library. (libclntsh.so). The location of + this library is specified relative to the + ORACLE_HOME value in the operating system + environment. &clsql; has tested sucessfully using the client + library from Oracle 9i and Oracle 10g server installations as + well as Oracle's 10g Instant Client library. + + + + Initialization + + Use + +(asdf:operate 'asdf:load-op 'clsql-oracle) + + to load the &oracle; back-end. The database type for the Oracle + back-end is :oracle. + + + + Connection Specification + + Syntax of connection-spec + (global-name user password) + + + Description of connection-spec + + + global-name + + String representing the global name of the Orace database. + This is looked up through the tnsnames.ora file. + + + + user + + String representing the user name to use for + authentication. + + + + password + + String representing the password to + use for authentication.. + + + + + + +