Class EntryValueSql

Assembly: redb.Core.Pro.dll

The value of a field read through a dictionary entry or an element of an array of classes (Scores[a], ByKey[k].Rank,
Items[0].Rank) for one object: the entry row is found by its key, a field of a class under it by
_array_parent_id. The pivots of plain fields read the rows without an index (_array_index IS NULL) or
take the MAX over every row of the structure, so an aggregate over such a field read no entry at all, or the largest
of all of them. The SQL is the same on PostgreSQL, SQL Server and SQLite.

public static class EntryValueSql

Inheritance

Object→EntryValueSql

Methods

IsEntryField(FieldInfo)

True for a field the pivot of plain fields cannot read: one addressed by a dictionary key or an index.

public static bool IsEntryField(FieldInfo field)

ParentRowJoin(string, string)

The join a statement over value rows row needs for : the entry row a

public static string ParentRowJoin(string row, string parentRow)

RowCondition(FieldInfo, string, string, SqlParameterCollector)

The condition a row row of _values meets when it is the value of

public static string RowCondition(FieldInfo field, string row, string parentRow, SqlParameterCollector collector)

Subquery(FieldInfo, string, SqlParameterCollector)

A scalar subquery giving the value of field for the object objectId (a

public static string Subquery(FieldInfo field, string objectId, SqlParameterCollector collector)