1.1 --- a/plugins/include/dbi.inc Thu Aug 09 19:48:46 2007 +0000
1.2 +++ b/plugins/include/dbi.inc Thu Aug 09 20:06:42 2007 +0000
1.3 @@ -145,8 +145,20 @@
1.4 native Handle:SQL_GetDriver(const String:name[]="");
1.5
1.6 /**
1.7 + * Reads the driver of an opened database.
1.8 + *
1.9 + * @param database Database Handle.
1.10 + * @param ident Option buffer to store the identification string.
1.11 + * @param ident_length Maximum length of the buffer.
1.12 + * @return Driver Handle.
1.13 + */
1.14 +native Handle:SQL_ReadDriver(Handle:database, String:ident[]="", ident_length=0);
1.15 +
1.16 +/**
1.17 * Retrieves a driver's identification string.
1.18 *
1.19 + * Example: "mysql", "sqlite"
1.20 + *
1.21 * @param driver Driver Handle, or INVALID_HANDLE for the default driver.
1.22 * @param ident Identification string buffer.
1.23 * @param maxlength Maximum length of the buffer.
1.24 @@ -158,6 +170,8 @@
1.25 /**
1.26 * Retrieves a driver's product string.
1.27 *
1.28 + * Example: "MySQL", "SQLite"
1.29 + *
1.30 * @param driver Driver Handle, or INVALID_HANDLE for the default driver.
1.31 * @param product Product string buffer.
1.32 * @param maxlength Maximum length of the buffer.