2025-10-16 15:09:07 +02:00
|
|
|
package postgres
|
|
|
|
|
|
2026-05-14 16:26:47 +00:00
|
|
|
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
2025-10-16 15:09:07 +02:00
|
|
|
|
|
|
|
|
// Interfaces for different postgres array column types
|
|
|
|
|
type (
|
|
|
|
|
ColumnBoolArray jet.ColumnArray[BoolExpression]
|
|
|
|
|
ColumnStringArray jet.ColumnArray[StringExpression]
|
|
|
|
|
ColumnIntegerArray jet.ColumnArray[IntegerExpression]
|
|
|
|
|
ColumnFloatArray jet.ColumnArray[FloatExpression]
|
|
|
|
|
ColumnByteaArray jet.ColumnArray[ByteaExpression]
|
|
|
|
|
ColumnDateArray jet.ColumnArray[DateExpression]
|
|
|
|
|
ColumnTimestampArray jet.ColumnArray[TimestampExpression]
|
|
|
|
|
ColumnTimestampzArray jet.ColumnArray[TimestampzExpression]
|
|
|
|
|
ColumnTimeArray jet.ColumnArray[TimeExpression]
|
|
|
|
|
ColumnTimezArray jet.ColumnArray[TimezExpression]
|
|
|
|
|
ColumnIntervalArray jet.ColumnArray[IntervalExpression]
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Column constructors for different postgres array column types
|
|
|
|
|
var (
|
|
|
|
|
BoolArrayColumn = jet.ArrayColumn[BoolExpression]
|
|
|
|
|
StringArrayColumn = jet.ArrayColumn[StringExpression]
|
|
|
|
|
IntegerArrayColumn = jet.ArrayColumn[IntegerExpression]
|
|
|
|
|
FloatArrayColumn = jet.ArrayColumn[FloatExpression]
|
|
|
|
|
ByteaArrayColumn = jet.ArrayColumn[ByteaExpression]
|
|
|
|
|
DateArrayColumn = jet.ArrayColumn[DateExpression]
|
|
|
|
|
TimestampArrayColumn = jet.ArrayColumn[TimestampExpression]
|
|
|
|
|
TimestampzArrayColumn = jet.ArrayColumn[TimestampzExpression]
|
|
|
|
|
TimeArrayColumn = jet.ArrayColumn[TimeExpression]
|
|
|
|
|
TimezArrayColumn = jet.ArrayColumn[TimezExpression]
|
|
|
|
|
IntervalArrayColumn = jet.ArrayColumn[IntervalExpression]
|
|
|
|
|
)
|