SQL Dump Import for views / table structure #986
Replies: 3 comments
-
Yes, there is indeed a feature in JCB that addresses this use case. If you create a new component in JCB, you’ll notice a tab labeled “Dynamic Build” within the component view. This feature allows you to dynamically generate the backend admin views and fields based on a MySQL SQL dump. The process works as follows:
JCB will analyze the SQL structure and generate the relevant admin views, fields, and configurations accordingly. To improve the accuracy of the generated fields (e.g., field types, labels), you can follow a convention where additional metadata is embedded in the SQL column comments. This helps JCB determine more specific field types instead of defaulting to generic text fields. While this feature may not be fully comprehensive yet, it already provides a powerful and time-saving way to scaffold components based on an existing database schema. We've successfully migrated several large extensions into JCB using this method, especially when working from an EER diagram or legacy schema. Of course, the generated views and fields should still be reviewed and refined, but this is a solid starting point for rapidly bringing an existing database structure into a JCB-managed Joomla component. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thank you lots, I‘ll check this right away!
Kind regards,
Terry Harker
…___________________
byteKultur GmbH
|
Beta Was this translation helpful? Give feedback.
-
Thank you, I see that works as in: it creates fields and it creates admin views from my MySQL dump. What it doesn't do is:
It would obviously be userful to have a tutorial, but I didn't find any. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to start the admin views or the component somehow from a MySQL dump (i.e. from CREATE TABLE statements)? This would be very useful for people who work with an existing EER diagram. Of course, the admin views and fields would have to be reviewed and adapted / completed afterwards, but starting from an EER diagram for me as a visual person is much easier to oversee.
Beta Was this translation helpful? Give feedback.
All reactions