Hi Xojo Developers,
I think many of you have asked: why I need spend time of my life typing obvious regular code around DB, making bugs, catching bugs, …
Last weeks we working to use QT JavaScript in Valentina Studio and integrate it with internal model-objects.
Thanks to this, Valentina Studio get a new feature - ability to GENERATE CODE of any kind, from db scheme for all supported databases (mySQL, postgreSQL, SQLite, MS SQL, ValentinaDB ).
We only have start to play in this direction, but we can demonstrate three different scripts. We will add more and more in the nearest time.
In particle for Xojo:
- get code for SQL INSERT/UPDATE/SELECT with binding according to Xojo rules and syntax.
- get project with code with N methods that do CREATE TABLEs, CREATE INDEX, … for any DB.
- get project with code for ValentinaDB class-style.
You can read details and see scripts and snapshots and generated code in this thread on Valentina forum.
So … I think many of you have asked: why I need spend time of my life typing obvious regular code around DB, making bugs, catching bugs, …
Let me invite you to discussion (here or on valentina forum) WHAT TASKS you think can be automated into Code Generator?
Q: Somebody can ask - how this differ from what I can do myself?
A1: We going to develop this as one more tool in Valentina Studio, so you can be sure this is long-time supported project.
A2: JS scripts will be open-source, so everybody can change them or improve.
A3: Valentina Studio contains special internal model objects over different DBs, so it will be simpler to write such code generator.
A4: We must be able to write set of scripts, which generate code for the same DB to all languages that we support: C/C++/C#/NET/Xojo/PHP/Java/…
A5: Task is far not simple in general case. It will require also special GUI and tuning to be comfortable for use.