Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding/changing sql metadata with firedac

Is there a way to add or change constraints (like primary keys, foreign keys, indexes, etc.) to an sql database with the TFDMetaInfoQuery from delphi firedac tools or the only thing I can do is extracting such information ?

something like : TFDMetaInfoQuery.AddConstraint or TFDMetaInfoQuery.AddPrimaryKey or TFDMetaInfoQuery.AddIndex - you get the point.

like image 715
Viktor Anastasov Avatar asked Nov 02 '22 03:11

Viktor Anastasov


1 Answers

From the manual about using TFDMetaInfoQuery:

The metadata dataset is read-only and cannot be edited.

like image 193
Jacek Krawczyk Avatar answered Nov 04 '22 11:11

Jacek Krawczyk