public final class SQLQuery<T>
Re-executable typed result of an explicit SQL query.
SQLQuery<T> is intentionally not Queryable<T>: raw SQL forms an explicit provider boundary and cannot be composed as KQL without materialization. T must be one of the entity types declared by the owning factory.
rows = manager.sqlQuery<User>(
"select id, login from T_Users where id > ?",
SQLParameters(10)
).toList()| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | sqlsql as String |
Explicit provider SQL text; bound values are not included. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SQLQuerySQLQuery(
session as SQLProviderSession,
configuration as SQLConfiguration,
mapping as SQLMappedEntity,
tracker as SQLIdentityTracker,
sql as String,
parameters as SQLParameters,
scope as PolicyScopeState = null
) |
Creates a typed raw SQL query bound to one manager session. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | streamstream() as QueryStream<T> |
Opens one independent forward-only SQL cursor. |
| public | toListtoList() as List<T> |
Materializes all rows and closes the underlying SQL resources. |