5

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.

Viktor Anastasov
  • 1,093
  • 3
  • 17
  • 33

1 Answers1

2

From the manual about using TFDMetaInfoQuery:

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

Jacek Krawczyk
  • 2,083
  • 1
  • 19
  • 25