Package io.facet.exposed

Types

SnowflakeColumnType
Link copied to clipboard
class SnowflakeColumnType : ColumnType

Numeric column for storing 64-bit Snowflake IDs

SnowflakeIdTable
Link copied to clipboard
open class SnowflakeIdTable(name: String, columnName: String) : IdTable<Snowflake>

Functions

create
Link copied to clipboard
fun Transaction.create(vararg tables: Table)
snowflake
Link copied to clipboard
fun Table.snowflake(name: String): Column<Snowflake>

Creates a numeric column, with the specified name, for storing unsigned 64-bit snowflake IDs.

snowflakeLiteral
Link copied to clipboard
fun snowflakeLiteral(snowflake: Snowflake): LiteralOp<Snowflake>

Returns the specified snowflake as a Snowflake literal.

sql
Link copied to clipboard
suspend fun <T> sql(context: CoroutineContext = Dispatchers.IO, db: Database? = null, sqlcode: Transaction.() -> T): T