fpc/fcl/db
2003-10-03 21:40:35 +00:00
..
dbase * CROSSCOMPILING stage 2 2003-10-03 21:40:35 +00:00
interbase * CROSSCOMPILING stage 2 2003-10-03 21:40:35 +00:00
mysql * CROSSCOMPILING stage 2 2003-10-03 21:40:35 +00:00
odbc * CROSSCOMPILING stage 2 2003-10-03 21:40:35 +00:00
tests * CROSSCOMPILING stage 2 2003-10-03 21:40:35 +00:00
database.inc + Fixes in TDBDataset etc. Changed MySQLDb to use database as well 2003-08-16 16:42:21 +00:00
dataset.inc + fixed dataset opening buffer issues 2003-05-06 12:08:52 +00:00
Dataset.txt
datasource.inc + Patch from Jesus Reyes 2003-05-08 21:52:41 +00:00
db.pp + Fixes in TDBDataset etc. Changed MySQLDb to use database as well 2003-08-16 16:42:21 +00:00
dbs.inc + Fixes in TDBDataset etc. Changed MySQLDb to use database as well 2003-08-16 16:42:21 +00:00
dbwhtml.pp + Form support. 2003-10-03 08:42:22 +00:00
ddg_ds.pp * old logs removed and tabs fixed 2002-09-07 15:15:22 +00:00
ddg_rec.pp * old logs removed and tabs fixed 2002-09-07 15:15:22 +00:00
fields.inc + Fixed error in TField.GetCanModify reported by Andrew Johnson 2003-09-14 13:22:14 +00:00
Makefile * CROSSCOMPILING stage 2 2003-10-03 21:40:35 +00:00
Makefile.fpc + Initial implementation of HTML producer 2003-10-01 21:06:50 +00:00
README * old logs removed and tabs fixed 2002-09-07 15:15:22 +00:00

This is the Database directory of the Free Component Library.

At the moment, there is a read/write implementation of TDataset.
The blob support is not tested yet.

Compiling the units:

Just run 'make all' and all should go fine, provided
1) The mysql unit is in the compiler path (the makefile will try to compile
   it in the packages mysql subdirectory)
2) the mysqlclient library is in /usr/lib (if you want to compile the mtest 
   program)
if these conditions are not satisfied, you should edit the makefile
and add -Fl/path/to/libmysqlclient to NEEDOPTS as well as
the -Fu/path/to/mysql/unit option.

Compiling the examples:

If the units compile fine, then the examples can be compiled by doing
'make examples'. see also the above remarks.

there are 2 descendents of TDataset to demonstrate/test the 
TDataset implementation.

TddgDataset : 

  Implemented in ddg_ds and ddg_rec. The dataset as
  implemented in the Delphi 4 Developers Guide.
  To test it, do a 
   createds filename
   testds filename
   tested filename
  the first creates a flat file, filled with 100 records;
  the second tests the navigation methods of TDataset on this file.
  the third tests the editing methods of TDataset (Append,Insert 
  and edit)

TMySQLdataset :
  Implemented in mysqldb. You need the mysql units for this.
  This is a temporary implementation based on the code from
     Rangel Gustavo Reale (hitnrun@geocities.com) 
  it will be used as a base for the DBdataset scalable dataset
  implementation.
  To test it, do a 
     mtest db user pwd SQL
  this will run the query SQL on the database db with user
  'user' and password 'pwd', and dump the result. Take care
  that you don't specify blob fields.
  To test it on the table created by the mkdb shell script
  that comes with the Free Pascal mysql unit, I did a
      mtest test michael pwd 'select * from FPdev'

I haven't implemented/tested blob fields yet.

Enjoy !

Michael.