I can see my database views in the database manager but that is about it. Can't seem to edit or create new views in the database manager? Is this something that is still in the works for the future?
I recently attempted to connect to a MySQL view which was visible but no query results. Didn’t spend the time troubleshooting.
I create all my views in MySQL Workbench and add them all to the database from there.
Once added, I just need to refresh the database info from within the Database Query server action and it works just like any other database table…
I do the same with Navicat. My question was out of curiosity to what we can do with views in the Database Manager. SO, it appears that either we can’t do anything with views in DB Manager or that is something that is coming in the future.
I was just curious that’s all. No issue for those of us that use an external app for databases. But for people that do rely on the DB Manager it may be an issue.
The views on the database manager are for use only. You can’t create them there yet.
Thanks George, that’s what I was wondering.
Antonio do you have an example of how to do this?
Unfortunately you can’t build views in Wappler. I build mine in Navicat and then they are available in Wappler just like any other table.
Hi. Can we know what views are for?
If you are building a large crud app, I quickly discovered that views are an absolutely essential part of your design strategy.
They allow you to combine content from different database tables into what is effectively another pseudo table you can then use in a single query.
So if you have a display of client orders for example, you will have that information in separate tables such as clients, products, and orders.
In this case I would create a view I call view_orders which brings that information together and has all the text content I need to show on the front end.
Views also offer programming such as case statements which are really powerful.
In this way the processing load on the front end is less and the user experience is way faster for complex displays.
It is counter-intuitive if you’ve come from Bubble, where the back-end is so slow… but you soon realise that in the real world, the back-end is fast and the front-end is much slower!
I have 54 tables with several foreign keys.
how do i import from Workbench to Wappler?
Add your connection information under global and then in the database manager just refresh schema.
I think there is a YouTube video for this on the Wappler YouTube channel.
Thank you.
Hi Marco, did you get it figured out?
Add your connection to Globals here …
Then in the database manager right click on tables and refresh schema right here …
I’ll see it today .
Is this something that can be changed to a feature request for Wappler 7?
Alternatively, the ability in query builder to join tables from two different databases. Currently I can only do this by creating the view in Navicat.