-
Notifications
You must be signed in to change notification settings - Fork 0
WebFramework databases
Semyon Gritsenko edited this page Jan 20, 2021
·
1 revision
All operations with database go through HTTPRequest in overridden methods.
HTTPRequest has template getModelInstance method that can get you reference to unique_ptr to specific table in your database.
You will need to create subclass of SQLiteDatabaseModel and pass that subclass as template parameter in getModelInstance method.
If SQLiteManager can't find your database or table it create a new instance.
You can also pass args parameter for constructor of your SQLiteDatabaseModel subclass.