A SQL Query.
More...
|
void | BindParam (string param, float value) |
| Binds the specified parameter with the specified value. More...
|
|
void | BindParam (string param, int value) |
| Binds the specified parameter with the specified value. More...
|
|
void | BindParam (string param, NwObject value) |
| Binds the specified parameter with the specified value. More...
|
|
void | BindParam (string param, string value) |
| Binds the specified parameter with the specified value. More...
|
|
void | BindParam (string param, Vector3 value) |
| Binds the specified parameter with the specified value. More...
|
|
void | Execute () |
| Executes this query. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
SQLResult?? | Result [get] |
| Gets the result of this query.
NOTE: If Results have been enumerated, this will be the last enumerated value. More...
|
|
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. More...
|
|
override int | StructureId [get] |
|
bool | IsValid [get] |
| Gets if this object is valid. More...
|
|
abstract 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. |
◆ Execute()
void Anvil.API.SQLQuery.Execute |
( |
| ) |
|
|
inline |
◆ 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. |
◆ Columns
string [] Anvil.API.SQLQuery.Columns |
|
get |
Gets the name of the columns declared as a part of this query.
◆ Error
string Anvil.API.SQLQuery.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.
◆ Result
Gets the result of this query.
NOTE: If Results have been enumerated, this will be the last enumerated value.
◆ Results
IEnumerable<SQLResult> Anvil.API.SQLQuery.Results |
|
get |
Gets the results of this query.
NOTE: Results can only be enumerated once. Be careful with usage of LINQ extensions and loops.
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/EngineStructures/SQLQuery.cs