Codeunit 18122339 EOS004 DB ResultSet
Provides access to a database reader for external databases over the EOS FunctionAPI. You cannot instantiate this class directly, it is returned from the DB API Client.
procedure BatchSize(NewValue: Integer)
Sets the current batch size. The batch size indicates how many records are read in each call to the EOS FunctionAPI. This defaults to 50.
NewValue Integer
The new batch size. If you set this to 0, the default batch size will be used.
procedure BatchSize(): Integer
Gets the current batch size. The batch size indicates how many records are read in each call to the EOS FunctionAPI. This defaults to 50.
Returns Integer
The current batch size.
procedure ReaderId(): Guid
Returns the ID of the reader that is currently being used.
Returns Guid
The ID of the reader.
procedure ConnectionId(): Guid
Returns the ID of the connection that is currently being used.
Returns Guid
The ID of the connection.
procedure Columns(): List of [Text]
Returns a list of all column names in the current dataset
Returns List[Text]
The list of column names
procedure DataType(Index: Integer): Text
Returns the C# data type of the given column, by column index.
Index Integer
The 1-based index of the column
Returns Text
The C# data type.
procedure DataType(ColumnName: Text): Text
Returns the C# data type of the given column, by column name.
ColumnName Text
The name of the column.
Returns Text
The C# data type.
procedure Value(Index: Integer): JsonValue
Returns the value of the current row as a JsonValue, by column index. If the index is invalid or does not exist, a null JsonValue is returned.
Index Integer
The 1-based index of the column.
Returns JsonValue
procedure Value(ColumnName: Text): JsonValue
Returns the value of the current row as a JsonValue, by column name. If the index is invalid or does not exist, a null JsonValue is returned.
ColumnName Text
The name of the column.
Returns JsonValue
procedure Row(): JsonArray
Returns the current row as a JsonArray
JsonArray
procedure Read(): Boolean
Read the next row in the dataset.
Returns Boolean
Returns true
if a record was read, false
if no more records are available.
procedure Close()
Closes the current reader. This is a TryFunction.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.