A SQL Query.
More...
|
| void | BindParam (string param, float value) |
| | Binds the specified parameter with the specified value.
|
| |
| void | BindParam (string param, int value) |
| | Binds the specified parameter with the specified value.
|
| |
| void | BindParam (string param, NwObject value) |
| | Binds the specified parameter with the specified value.
|
| |
| void | BindParam (string param, string value) |
| | Binds the specified parameter with the specified value.
|
| |
| void | BindParam (string param, Vector3 value) |
| | Binds the specified parameter with the specified value.
|
| |
|
void | Execute () |
| | Executes this query.
|
| |
| void | Reset (bool clearBinds=false) |
| | Reset this sqlquery, readying it for re-execution after results have been fetched.
Existing BindParam values are kept, unless the clearBinds argument is set to true.
|
| |
|
void | Dispose () |
| |
|
|
static implicit | operator SQLQuery (IntPtr intPtr) |
| |
|
static implicit | operator IntPtr (EngineStructure engineStructure) |
| |
|
|
string[] | Columns [get] |
| | Gets the name of the columns declared as a part of this query.
|
| |
|
string | Error [get] |
| | Returns "" if the last Sql command succeeded; or a human-readable error otherwise.
Additionally, all SQL errors are sent to all connected players.
|
| |
|
SQLResult? | Result [get] |
| | Gets the result of this query.
NOTE: If Results have been enumerated, this will be the last enumerated value.
|
| |
|
IEnumerable< SQLResult > | Results [get] |
| | Gets the results of this query.
NOTE: Results can only be enumerated once. Be careful with usage of LINQ extensions and loops.
|
| |
|
override int | StructureId [get] |
| |
|
bool | IsValid [get] |
| | Gets if this object is valid.
|
| |
|
int | StructureId [get] |
| |
|
|
| EngineStructure (IntPtr handle, bool memoryOwn) |
| |
◆ BindParam() [1/5]
| void Anvil.API.SQLQuery.BindParam |
( |
string | param, |
|
|
float | value ) |
|
inline |
Binds the specified parameter with the specified value.
- Parameters
-
| param | The parameter name to bind. |
| value | The value to bind to the parameter. |
◆ BindParam() [2/5]
| void Anvil.API.SQLQuery.BindParam |
( |
string | param, |
|
|
int | value ) |
|
inline |
Binds the specified parameter with the specified value.
- Parameters
-
| param | The parameter name to bind. |
| value | The value to bind to the parameter. |
◆ BindParam() [3/5]
| void Anvil.API.SQLQuery.BindParam |
( |
string | param, |
|
|
NwObject | value ) |
|
inline |
Binds the specified parameter with the specified value.
- Parameters
-
| param | The parameter name to bind. |
| value | The value to bind to the parameter. |
◆ BindParam() [4/5]
| void Anvil.API.SQLQuery.BindParam |
( |
string | param, |
|
|
string | value ) |
|
inline |
Binds the specified parameter with the specified value.
- Parameters
-
| param | The parameter name to bind. |
| value | The value to bind to the parameter. |
◆ BindParam() [5/5]
| void Anvil.API.SQLQuery.BindParam |
( |
string | param, |
|
|
Vector3 | value ) |
|
inline |
Binds the specified parameter with the specified value.
- Parameters
-
| param | The parameter name to bind. |
| value | The value to bind to the parameter. |
◆ Reset()
| void Anvil.API.SQLQuery.Reset |
( |
bool | clearBinds = false | ) |
|
|
inline |
Reset this sqlquery, readying it for re-execution after results have been fetched.
Existing BindParam values are kept, unless the clearBinds argument is set to true.
This command only works on successfully-prepared queries that have not errored out.
- Parameters
-
| clearBinds | True if existing bind parameters should be cleared, false if they should be kept. |
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/EngineStructures/SQLQuery.cs