Class Open
Open a cursor
@startuml
client -> server: Open
alt Success
... none or partial Resultsets or full Resultsets ...
client <- server: StmtExecuteOk
else Failure
client <- server: Error
end alt
@enduml
@returns @ref Mysqlx::Ok
Inheritance
System.Object
Open
Implements
Google.Protobuf.IBufferMessage
Assembly: MySql.Data.dll
Version: 9.2.0
Syntax
public sealed class Open : Google.Protobuf.IMessage<Open>
Constructors
Open()
Declaration
Open(Open)
Declaration
Parameters
Type |
Name |
Description |
Open |
other |
|
Fields
CursorIdFieldNumber
Field number for the "cursor_id" field.
Declaration
public const int CursorIdFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
FetchRowsFieldNumber
Field number for the "fetch_rows" field.
Declaration
public const int FetchRowsFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
StmtFieldNumber
Field number for the "stmt" field.
Declaration
public const int StmtFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
Properties
CursorId
- client-side assigned cursor ID; the ID is going to represent
the new cursor and assigned to it the statement
Declaration
public uint CursorId { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
FetchRows
- number of rows that should be retrieved from sequential cursor
Declaration
public ulong FetchRows { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
HasCursorId
Gets whether the "cursor_id" field is set
Declaration
public bool HasCursorId { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasFetchRows
Gets whether the "fetch_rows" field is set
Declaration
public bool HasFetchRows { get; }
Property Value
Type |
Description |
System.Boolean |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<Open> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<Open> |
|
Stmt
- statement for which the resultset is going to be iterated through by the cursor
Declaration
public Open.Types.OneOfMessage Stmt { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
ClearCursorId()
Clears the value of the "cursor_id" field
Declaration
public void ClearCursorId()
ClearFetchRows()
Clears the value of the "fetch_rows" field
Declaration
public void ClearFetchRows()
Clone()
Declaration
Returns
Equals(Open)
Declaration
public bool Equals(Open other)
Parameters
Type |
Name |
Description |
Open |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
MergeFrom(Open)
Declaration
public void MergeFrom(Open other)
Parameters
Type |
Name |
Description |
Open |
other |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
WriteTo(Google.Protobuf.CodedOutputStream)
Declaration
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedOutputStream |
output |
|
Implements
Google.Protobuf.IBufferMessage