SqlBindJson(sqlquery, string, json)
From NWN Lexicon
Jump to navigationJump to searchBind an json to a named parameter of the given prepared query.
Parameters
- sqlQuery
- a prepared sql query
- sParam
- named parameter
- jValue
- json to bind
Description
Bind an json to a named parameter of the given prepared query.
Remarks
Json values are serialised into a string.
Version
This function was added in 1.85.8193.31 of NWN:EE.
Example
From nwscript:
sqlquery v = SqlPrepareQueryObject(GetModule(), "insert into test (col) values (@myjson);"); SqlBindJson(v, "@myjson", myJsonObject); SqlStep(v);
See Also
functions: |