X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fappendix.xml;h=f06f035edfd4915831a7004018c66e278f0f6f46;hb=b50166ae0ba2bc09a9094c0e675ec92010b7293e;hp=1fdbed0961cc581db0e248cdca7f3a995e1221e3;hpb=18e34efea688a6758b6e997401fbc3f241da98f3;p=clsql.git diff --git a/doc/appendix.xml b/doc/appendix.xml index 1fdbed0..f06f035 100644 --- a/doc/appendix.xml +++ b/doc/appendix.xml @@ -438,7 +438,7 @@ This file can contain forms to set site-specific paths as well as change Connection Specification Syntax of connection-spec - (dsn user password) + (dsn user password &key connection-string) Description of connection-spec @@ -463,6 +463,15 @@ This file can contain forms to set site-specific paths as well as change use for authentication. + + connection-string + + Raw connection string passed to the underlying + ODBC driver. Allows bypassing creating a DSN on the + server. + + + @@ -478,6 +487,26 @@ This file can contain forms to set site-specific paths as well as change + Connect Examples + + +;; assumes a "mssql" DSN is configured on the lisp host, specifying database server +;; and database name. +> (clsql:connect '("mssql" "database-user" "database-password") + :database-type :odbc) +=> #<CLSQL-ODBC:ODBC-DATABASE mssql/database-user OPEN {100756D123}> + +;; no DSN on the lisp host, specify connection information via :connection-string +> (clsql:connect '("friendly-server-name" "friendly-username" "" + :connection-string "DRIVER={FreeTDS};SERVER=mssql-server;DATABASE=database-name;UID=database-user;PWD=database-password;PORT=1433;TDS_Version=8.0;APP=clsql") + :database-type :odbc) +=> #<CLSQL-ODBC:ODBC-DATABASE friendly-server-name/friendly-username OPEN {100756D123}> + + The friendly-server-name + and friendly-username are only used when + printing the connection object to a stream. + + @@ -571,8 +600,8 @@ This file can contain forms to set site-specific paths as well as change filename - String representing the filename of the &sqlite; - database file. + String or pathname representing the filename of + the &sqlite; database file.