View Single Post
Author Message
BAILOPAN
Join Date: Jan 2004
Old 04-02-2004 , 19:31   Databases with AMXx 0.2
#1

I am announcing an important change in AMX Mod X structure which pertains to scripters for 0.2.

I have implemented a trivial Database API so a plugin that uses SQL will work anywhere. As long as the user has a database interface module loaded, and the plugin author uses ANSI-SQL, it will work. If you would like something other than MySQL or PgSQL supported, please list it here.

Change for scripters:
Code:
#include <mysql>

Should be changed to:
Code:
#include <dbi>

Any function that references a native like this:
mysql_query, mysql_connect
Is now:
dbi_query, dbi_connect, et cetera.
configs/mysql.cfg is now configs/sql.cfg
amx_mysql_cvars are now amx_sql_cvars

Remember, this is for 0.2 only. (changes are in CVS).

Please be ready to change to this new format when the next release comes out.

(btw - I fixed those infamous crashing bugs in mysql module)
__________________
egg
BAILOPAN is offline