michael 2bcaf8ceaf + Fix to use postgres3 unit 21 年之前
..
dbase 458e3c3780 * makefiles regenerated 21 年之前
interbase 89a4205acc + Patch from Jesus Reyes to fix the change to TField.AsFloat (double) 21 年之前
memds 458e3c3780 * makefiles regenerated 21 年之前
mysql 8b4751debf + Database property published 21 年之前
odbc 9fad381d29 + Rework of buffer management by Joost Van der Sluis 21 年之前
sdf 458e3c3780 * makefiles regenerated 21 年之前
sqldb 2bcaf8ceaf + Fix to use postgres3 unit 21 年之前
sqlite 67c5974db4 + Fixes to CreateDataset from Luiz Americo 21 年之前
tests 458e3c3780 * makefiles regenerated 21 年之前
Dataset.txt 9fad381d29 + Rework of buffer management by Joost Van der Sluis 21 年之前
Makefile 458e3c3780 * makefiles regenerated 21 年之前
Makefile.fpc 96af65f22f + Initial TBufDataset by Joost van der Sluis 21 年之前
README db24d91c85 * old logs removed and tabs fixed 23 年之前
bufdataset.inc fc9989eb80 * big patch from Joost van der Sluis 21 年之前
database.inc fc9989eb80 * big patch from Joost van der Sluis 21 年之前
dataset.inc fc9989eb80 * big patch from Joost van der Sluis 21 年之前
datasource.inc 96af65f22f + Initial TBufDataset by Joost van der Sluis 21 年之前
db.pp fc9989eb80 * big patch from Joost van der Sluis 21 年之前
dbs.inc fc9989eb80 * big patch from Joost van der Sluis 21 年之前
dbwhtml.pp fc3ae75472 + Added ColumnByName method to TTAbleColumns 22 年之前
ddg_ds.pp 3ab3e2e19b * use ptrint 22 年之前
ddg_rec.pp db24d91c85 * old logs removed and tabs fixed 23 年之前
fields.inc da5a961ae0 * Patch from Joost van der Sluis 21 年之前

README

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 ([email protected])
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.