# Slice

class Slice(val source: ColumnSet, val fields: List<Expression<*>>) : FieldSet

Represents a subset of fields from a given source.

## Constructors

Slice
Link copied to clipboard
constructor(source: ColumnSet, fields: List<Expression<*>>)

## Properties

fields
Link copied to clipboard
open override val fields: List<Expression<*>>

Returns the field of this field set.

realFields
Link copied to clipboard
open val realFields: List<Expression<*>>

Returns all real fields, unrolling composite CompositeColumn if present

source
Link copied to clipboard
open override val source: ColumnSet

Return the column set that contains this field set.

## Functions

select
Link copied to clipboard
inline fun FieldSet.select(where: SqlExpressionBuilder.() -> Op<Boolean>): Query
fun FieldSet.select(where: Op<Boolean>): Query
selectAll
Link copied to clipboard
fun FieldSet.selectAll(): Query

Creates a `SELECT` Query by selecting all columns from this ColumnSet.

selectAllBatched
Link copied to clipboard
fun FieldSet.selectAllBatched(batchSize: Int = 1000): Iterable<Iterable<ResultRow>>
selectBatched
Link copied to clipboard
fun FieldSet.selectBatched(batchSize: Int = 1000, where: SqlExpressionBuilder.() -> Op<Boolean>): Iterable<Iterable<ResultRow>>