Class Scope
Main runtime scope
Inheritance
System.Object
Scope
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SqlDotNet.Runtime
Assembly: SqlDotNet.dll
Syntax
public class Scope
Constructors
| Improve this Doc View SourceScope(Scope)
Create new scope
Declaration
public Scope(Scope parent)
Parameters
Type | Name | Description |
---|---|---|
Scope | parent | Parent scope, can be null |
Properties
| Improve this Doc View SourceArgumentStack
Argument stack, here will be all parameters which were passed to a function/method stored
Declaration
public Dequeue<Tuple<int, StackItem>> ArgumentStack { get; }
Property Value
Type | Description |
---|---|
Dequeue<System.Tuple<System.Int32, StackItem>> |
Stack
Stack
Declaration
public CommandStack Stack { get; }
Property Value
Type | Description |
---|---|
CommandStack |
Methods
| Improve this Doc View SourceCreateCursor(String)
Create and add a new cursor
Declaration
public Cursor CreateCursor(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the cursor |
Returns
Type | Description |
---|---|
Cursor | Cursor instance |
CreateResultSet(String)
Create and add a new result set
Declaration
public ResultSet CreateResultSet(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the result set |
Returns
Type | Description |
---|---|
ResultSet | Result set instance |
CreateVariable(String)
Create a new variable in the current scope
Declaration
public Variable CreateVariable(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the variable |
Returns
Type | Description |
---|---|
Variable | New var |
GetCursor(String)
Get an already existing cursor
Declaration
public Cursor GetCursor(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the cursor |
Returns
Type | Description |
---|---|
Cursor | Cursor instance |
GetNew()
Get a new scope and set the current scope as the new parent scope
Declaration
public Scope GetNew()
Returns
Type | Description |
---|---|
Scope | Scope instance |
GetResultSet()
Get last or default set, only for the current scope
Declaration
public ResultSet GetResultSet()
Returns
Type | Description |
---|---|
ResultSet | Current scope |
GetResultSet(String)
Get an already existing result set
Declaration
public ResultSet GetResultSet(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the resultset |
Returns
Type | Description |
---|---|
ResultSet | Resultset instance |
GetVariable(String)
Get an already existing variable
Declaration
public Variable GetVariable(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the var |
Returns
Type | Description |
---|---|
Variable | Variable instance |