Updating DB structure when opening a solution

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Updating DB structure when opening a solution

Postby log-out » Mon Jan 22, 2007 3:50 pm

Hi:

If I have Servoy opened with a solution and I create a new column in the DB, I have to EXIT Servoy to update the column list in the Dataproviders window.

Servoy should update tables info when a opening a solution.

Log-Out
Bogota - Colombia
log-out
 
Posts: 180
Joined: Sat Feb 19, 2005 4:20 pm
Location: Spain

Postby rgansevles » Mon Jan 22, 2007 6:09 pm

Hi Log-Out ,

Servoy developer is reading the database schema only once, at startup.
Tables and columns added via servoy are usable without restart.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Postby log-out » Tue Jan 23, 2007 12:57 am

But Serrvoy could read the DB schema at solution opening. Is it very difficult to implement?

Log-Out
Bogota - Colombia
log-out
 
Posts: 180
Joined: Sat Feb 19, 2005 4:20 pm
Location: Spain

Postby ROCLASI » Tue Jan 23, 2007 7:27 am

Hi Log-Out,

You are assuming that a database connection is linked to a single solution.
Any solution can use any database connection. So lets say you have 2 solutions on your server that use the same database connection.
Solution 1 gets opened by user 1, the database gets checked and user 1 is of working with it's solution.
5 minutes later user 2 comes along and opens solution 2. So it checks the database and finds that you changed some columns and tables in the mean time.
This works out fine for user 2...but what will happen to the running solution of user 1?
As you can see...things get complicated when it does what you are proposing.

Just food for thought :)
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby log-out » Tue Jan 23, 2007 6:15 pm

Ok!! You'r right :lol:

Log-Out
Bogota - Colombia
log-out
 
Posts: 180
Joined: Sat Feb 19, 2005 4:20 pm
Location: Spain


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 23 guests

cron