CreateBuilder

class CreateBuilder(table: String, db: Surreal)

Create builder

A builder for creating a new record with a random id. Should be used in conjunction with jsonContent or content

Constructors

Link copied to clipboard
constructor(table: String, db: Surreal)

Creates builder with the specified table and database connection

Functions

Link copied to clipboard
inline suspend fun <T> content(data: T): T

Content

Link copied to clipboard
suspend fun jsonContent(data: JsonObject): JsonObject

Json content