Documentation:Database
From TinyMVC Documentation
Custom Database Plugin
If want to use something other than the built-in PDO database plugin, do the following:
Assuming your database plugin is named MYDB:
- copy tinymvc_pdo.php from /sysfiles/plugins/tinymvc_pdo.php to /myapp/plugins/tinymvc_mydb.php
- edit the file, rename the class from TinyMVC_PDO to TinyMVC_MYDB.
- edit the functionality to your liking
- edit /myapp/configs/database.php, change the plugin name to MYDB.