/
krasninja
/
querycat
Обзор
Документация
Войти
/
krasninja
/
querycat
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/QueryCat.Backend.Core/Data/IRowsInput.cs
35 строк
1 KB
Ivan Kozhin
"Rebalance" utils (again), improve AOT support
22 дек 2023, 08:49
22 дек 2023, 08:49
b81d64f
Код
Авторство
О чём код?
using QueryCat.Backend.Core.Types; namespace QueryCat.Backend.Core.Data; /// <summary> /// Class implements methods to get rows. /// </summary> public interface IRowsInput : IRowsSource, IRowsSchema { /// <summary> /// Unique keys identifies rows input among others. It can be used by cache layer. /// </summary> string[] UniqueKey { get; } /// <summary> /// Read the column's value at current position. The column target type is expected, otherwise /// the cast will be performed. /// </summary> /// <param name="columnIndex">Column index.</param> /// <param name="value">Return value.</param> /// <returns>Error code.</returns> ErrorCode ReadValue(int columnIndex, out VariantValue value); /// <summary> /// Read next row. /// </summary> /// <returns>True if there are remain rows to read, false if no row was read.</returns> bool ReadNext(); /// <summary> /// Write explain information about the current input. /// </summary> /// <param name="stringBuilder">String builder to write.</param> void Explain(IndentedStringBuilder stringBuilder); }