Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
24
_module/nss/nwnx_nwsqliteext.nss
Normal file
24
_module/nss/nwnx_nwsqliteext.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
/// @addtogroup nwsqliteextensions NWSQLiteExtensions
|
||||
/// @brief Various extensions for the game's built-in sqlite database.
|
||||
/// @{
|
||||
/// @file nwnx_nwsqliteext.nss
|
||||
|
||||
const string NWNX_NWSQLiteExtensions = "NWNX_NWSQLiteExtensions"; ///< @private
|
||||
|
||||
/// @brief Create a virtual table for s2DA in the module sqlite database.
|
||||
/// @param s2DA The 2DA name, cannot be empty.
|
||||
/// @param sColumnTypeHints A string containing type hints for the 2DA columns. See this plugin's readme file for more info.
|
||||
/// @param sTableName The table name, will use the 2da name if empty.
|
||||
/// @return TRUE if the virtual table was created.
|
||||
int NWNX_NWSQLiteExtensions_CreateVirtual2DATable(string s2DA, string sColumnTypeHints = "", string sTableName = "");
|
||||
|
||||
/// @}
|
||||
|
||||
int NWNX_NWSQLiteExtensions_CreateVirtual2DATable(string s2DA, string sColumnTypeHints = "", string sTableName = "")
|
||||
{
|
||||
NWNXPushString(sTableName);
|
||||
NWNXPushString(sColumnTypeHints);
|
||||
NWNXPushString(s2DA);
|
||||
NWNXCall(NWNX_NWSQLiteExtensions, "CreateVirtual2DATable");
|
||||
return NWNXPopInt();
|
||||
}
|
Reference in New Issue
Block a user