Hi,
I want to use a PostgreSQL database with TMS Aurelius.
So I imported my Test-Database with 2 tables and the 2 sequences for autoinc, but the sequences were not imported. I get an error when I try to export the data structure to Aurelius.
So I have to add them manually and configure them in the Export-Settings.
Now I can export the DB as Delphi-Unit.
After that I tried to do the same within Delphi in the Popup-Menu of the TMSAurelius connection, but there I can not manually add the sequence. So I get again the error, that the sequence is missing.
Is this a problem of me, or is PostgreSQL not really supported?
Also I can not use a connection using UniDAC, there is an error: UniDac is not supported at designtime. So I used FireDAC, but I always use UniDAC and not FireDAC. What to do to use UniDAC in DesignTime?
PostgreSQL is fully supported, but you have to indicate the sequences for the tables when importing classes from existing database, like you said you did in the Export-Settings.
In the TMS Aurelius connection popup you can simply tell the importer to ignore the sequences, import the tables, and then add the sequences later in the mapping, if needed.
This was discussed in this topic:
Regarding UniDAC, design-time support is not installed by default because it's not a native Delphi component, so not available for everyone. You can install it manually, and it's also discussed here:
Thanks for your fast reply, but ...
I already found the topic with the package, but it does not work for me.
I also added a "ShowMessage" in the registration method, and it is displayed.
Are you sure, this is working in Delphi 12.1?
The topic with the MissingSequence I have noticed, but my question was, why TMS Data Modeler does not import the sequences.
If it does not work, to directly import from the Aurelis Connection, this is ok for me, but I need the feature that the sequences are imported in Data Modeler.
I have a project in VisualStudio with EntityFramework that has much tables.
So, when the datastructure is changed by EF I have to reimport the database. And if I have to set every sequence everytime, this is too much to do.
Therefore I asked about the sequence import, that does not work for me.
I apologize for asking again, but I want to clarify something. I understand that it doesn't associate the sequences correctly. However, since the sequence names always follow the format "[TableName]_[PrimaryKey]_seq," this could be automated.
The issue I'm facing is that it doesn't import the sequences at all; I always have to create them manually. As I understand it, this is intentional and not a bug, correct?