peter a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
..
dbase a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
interbase a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
memds a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
mysql a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
odbc a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
sdf a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
sqldb a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
sqlite a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
tests a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
Dataset.txt 03db18cfb1 + Conform latest issues 21 anos atrás
Makefile a54a8634aa Merged revisions 375,2257,2261-2262,2271,2296,2376,2443 via svnmerge from 20 anos atrás
Makefile.fpc 94052210ca Merged revisions 1954-1955,1962-1963,1966-1967,1969,1973,1979,1982,1987-1992,1994-1999,2003-2007,2017,2021,2023,2031-2033,2035,2037,2039-2042,2045-2047,2050,2054-2057,2063,2065-2066,2069,2071-2075,2077-2078,2080-2081,2083,2097-2098,2101,2105-2106,2144-2145,2149,2156-2157,2176,2190,2194-2195,2202,2209-2211,2216,2220,2225-2232,2238 via svnmerge from 20 anos atrás
README db24d91c85 * old logs removed and tabs fixed 23 anos atrás
bufdataset.inc 3e2db3f349 Merged revisions 2181 via svnmerge from 20 anos atrás
database.inc 40b7a41d70 Merged revisions 1655-1657,1667,1677,1680 via svnmerge from 20 anos atrás
dataset.inc 3e2db3f349 Merged revisions 2181 via svnmerge from 20 anos atrás
datasource.inc 048cdb2d74 Merged revisions 26 via svnmerge from 20 anos atrás
db.pp 2b73da8927 Merged revisions 1980,2022,2034,2161 via svnmerge from 20 anos atrás
dbconst.pp 7549fa9d59 Merged revisions 1756,1764-1774,1776-1777,1784-1785,1787,1791,1797,1813,1823,1825-1826,1829-1869,1871-1872,1875-1878,1880-1881,1884,1890-1891 via svnmerge from 20 anos atrás
dbwhtml.pp b409904e44 Merged revisions 42 via svnmerge from 20 anos atrás
ddg_ds.pp 88936f9a79 Merged revisions 1792-1794 via svnmerge from 20 anos atrás
ddg_rec.pp b409904e44 Merged revisions 42 via svnmerge from 20 anos atrás
dsparams.inc 2b73da8927 Merged revisions 1980,2022,2034,2161 via svnmerge from 20 anos atrás
fields.inc 2b73da8927 Merged revisions 1980,2022,2034,2161 via svnmerge from 20 anos atrás

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.