It's possibilities to create table with ZTable?

The stable tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.
kermipl
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 09.08.2013, 19:29

It's possibilities to create table with ZTable?

Postby kermipl » 09.08.2013, 19:44

Hi, I'm Lazarus user under Linux and I want to connect not only one SQL server for example MySQL, PostgreSQL or SQLITE3. It's posibility to create using this metod (it's from SQLITE3 dataset code)

[code]

with TABLENAME do
begin
FileName := 'odbiorcy.db';
if not TableExists then
begin
FieldDefs.Clear;
FieldDefs.Add('indeks', ftString);
FieldDefs.Add('nazwa', ftString);
FieldDefs.Add('spi', ftFloat);
FieldDefs.Add('procspi', ftFloat);
FieldDefs.Add('spw', ftFloat);
FieldDefs.Add('procsp', ftFloat);
FieldDefs.Add('zwi', ftFloat);
FieldDefs.Add('proczwi', ftFloat);
FieldDefs.Add('zww', ftFloat);
FieldDefs.Add('proczww', ftFloat);
FieldDefs.Add('prodi', ftFloat);
FieldDefs.Add('prodw', ftFloat);
CreateTable;
end;
Open;
end;
[code]

Sory for my English...
Thank for yours time.

User avatar
EgonHugeist
Zeos Dev Team
Zeos Dev Team
Posts: 1701
Joined: 31.03.2011, 22:38

Postby EgonHugeist » 11.08.2013, 11:37

kermipl,

nope, we don't support that. Zeos is a common Component palette for several protocols. Supporting this would make much trouble with other providers. The FieldRefs do not support default values, foreign/primary keys indices etc. So this would we not more than an ad hock approach. Sorry.
King regards, Michael

You want to help? viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image


Return to “ZeosLib 7.0 Stable Forum”

Who is online

Users browsing this forum: No registered users and 1 guest