X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fintro.sgml;h=7c8c2277642c20f916ef580b58c331395e3e8812;hb=17c4d99ca97dbdec882028929d645e16164b4b0b;hp=5a6e7bb42656f473d00b831b8f3014b0ec52e1c2;hpb=1f66d711941c82be96c0f9748b9c7dda90a2b964;p=clsql.git diff --git a/doc/intro.sgml b/doc/intro.sgml index 5a6e7bb..7c8c227 100644 --- a/doc/intro.sgml +++ b/doc/intro.sgml @@ -16,10 +16,28 @@ structure of &clsql; is based on the History &clsql; is written by Kevin M. Rosenberg and based substantially -on Pierre R. Mai's excellent &maisql; package. The main changes have -been to port the &ffi; to &uffi;, add to Allegro's ODBC interface as a -supported database, add a compatibility layer for &cmucl; specific -code, and make the code more robust in terms of &mysql; support. +on Pierre R. Mai's excellent &maisql; package. The main changes from &maisql; +are: + + +port from the &cmucl; FFI to &uffi;. + + +new &acl; ODBC interface back-end. + + +compatibility layer for &cmucl; specific code. + + +much improved robustness for the &mysql; back-end. + + +improved system loading. + + +improved packages and symbol export. + + @@ -30,10 +48,10 @@ code, and make the code more robust in terms of &mysql; support. &defsystem; &clsql; uses &defsystem to compile and load its components. &defsystem; is included in the &clocc;. The -defsystem version in the pre-packaged distribution is rather old and +url="http://clocc.sourceforge.net">&clocc; collection. The +version in the pre-packaged distribution is rather old and may not function well. The version in CVS tree tree works quite -well. For convenience, a copy of the latest defsystem at the FTP +well. For convenience, a copy of the latest &defsystem; at the FTP site of &clsql;. @@ -42,7 +60,7 @@ of &clsql;. &uffi; - &clsql; uses &clsql; uses &uffi; as a Foreign Function Interface (FFI) to support multiple &cl; @@ -54,6 +72,16 @@ are zip files for Microsoft Windows systems and gzipped tar files for other systems. + + XPTest (optional) + The test suite for &clsql; uses the onShore Development's +XPTest package. onShore has graciously put the package in the public +domain. You can download the package from onShore's web site. +This package is not required except if you wish to run the &clsql; +test suite. + + Supported Common Lisp Implementation @@ -89,37 +117,37 @@ the following implementations are supported: Ensure &defsystem; is loaded Simply load the file defsystem.lisp. - + (load "defsystem.lisp") - + - Build <filename>clsql-mysql</filename> helper library - &mysql; uses functions that require 64-bit integer + Build &c; helper libraries + &clsql; uses functions that require 64-bit integer parameters and return values. The &ffi; in most &clsql; -implementations do not support 64-bit integers. Thus, a C helper -library is required to break these 64-bit integers into two compatible +implementations do not support 64-bit integers. Thus, C helper +libraries are required to break these 64-bit integers into two compatible 32-bit integers. -Makefile's for Microsoft Windows and GNU/Solaris systems -are supplied to build this library. In addition, the DLL and LIB +Makefiles for Microsoft Windows and GNU/Solaris systems +are supplied to build the libraries. Since many Microsoft Windows +users don't have access to a compiler, the DLL and LIB files for Microsoft Windows are supplied with the distribution. -To build the library, first move to the directory -interfaces/mysql directory. You may need to -edit Makefile or Makefile.msvc to -correctly specify the location of your &mysql; installation. On UNIX systems, use -the command: -make -On a Microsoft Windows system, -use the command: +To build the libraries on a GNU or Solaris, use the shell and +change to the root directory of &clsql;. You may need to edit the file +interfaces/mysql/Makefile to specify the location of your +MySQL installation. Then, you can give the command -nmake /f -Makefile.msvc - - +make libs + +in the root directory of &clsql; to build the libraries +interfaces/mysql/clsql-mysql.so and +interfaces/clsql-uffi/clsql-uffi.so. + + Load &uffi; @@ -131,8 +159,8 @@ use the new add-registry-location present in the newest ver &defsystem;. The following example code assumes the &uffi; files reside in the /usr/local/src/lisp/uffi directory. - (mk:add-registry-location #P"/usr/local/src/lisp/uffi") - (mk:load-system :uffi) +(mk:add-registry-location #P"/usr/local/src/lisp/uffi") +(mk:load-system :uffi)