Personally, I would not recommend DBKit as I think it has many deficiencies. Too many to go into here.
Way back when my company did Xojo consulting we created ActiveRecord and ARGen to make it easier to create boilerplate Xojo code and UI from a given database schema. Used it in dozens of really big projects and it was such a time saver.
Essentially if you had a table, or view (important!) it would create a class. So a users table would have a corresponding users class and the properties on the class would map to all the columns in the table. It also had corresponding Load/Save/Delete methods that you could modify to suit your needs. And, if you had set the relations up properly in ARGen it would create any properties and methods related to it. For example, if you had a permissions table that tied into the users table it would just automagically create the right stuff in the Users class AND the Permissions class. It would auto populate some of the code too so in the Load method youâd get stuff like this:
FirstName.Text = me.FirstName
LastName.Text = me.LastName
And so on. Save would have similar attributes.
Each class would have Before/After Create, Update, Delete events where you could do whatever you needed to do for related data. The Before events allowed you to cancel the process and provide whatever feedback you wanted to give the user. This was also a good place to check Record Locking (i.e. the record has been updated since youâve last read it!).
Views would automatically resolve into their constituent table classes.
As far as UI goes it would take some guesses based on the column type on what type of control it would take (numeric and text columns would assume TextField, booleans would take a checkbox, etc) but you could change it in ARGen to say make it a ComboBox or something else. One click later youâd have the shell of an application with all the needed classes, modules, windows, dialogs, containers, etc.
Was their work to do afterwards? Of course because I, as the developer, wanted total control of how controls loaded and saved data. But it saved countless hours. Was it perfect? Nope, but it worked for 95% of our clients needs and it never stopped you from rolling your own implementations.
Since my time itâs been sold, open sourced, and is available at GitHub - undtec/argen: Xojo ActiveRecord Generator · GitHub. I do not know if itâs fully API 2 compliant or if itâs up to date with the new Desktop style controls. But since itâs open source you could update it and help the community.