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.
Post Reply
kermipl
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 09.08.2013, 19:29

It's possibilities to create table with ZTable?

Post by kermipl »

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: Select all


 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 Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

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.
Best regards, Michael

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

Image
Post Reply