View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-23-2015 , 08:50   Re: SQLite and MySQL
Reply With Quote #2

Just a matter to select the wanted driver. API is the same.

SQL_SetAffinity("sqlite") or SQL_SetAffinity("mysql")

Now about autoloading module, depending what you want to do.
If you want to load only sqlite module, you need to do:
Code:
#pragma defclasslib sqlx sqlite
#include <sqlx>
if you want to load both module mysql and sqlite, so to change driver anytime, then:
Code:
#include "sqlx"
#pragma defclasslib sqlite sqlite
__________________

Last edited by Arkshine; 01-23-2015 at 08:51.
Arkshine is offline