Raised This Month: $ Target: $400
 0% 

Solved Work with sqlx and sqlite in the same plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-02-2021 , 11:24   Re: Work with sqlx and sqlite in the same plugin
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
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
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode