Skip to content

SQLJSON

Josh Wright edited this page Jan 14, 2021 · 3 revisions

SQLJSON

A type used to signify that a column on a database has a JSON type.

public struct SQLJSON: Sequelizable

This type can't be instantiated and so can't be passed to the generic default function on CreateColumnBuilder. Instead, opt to use .default(jsonString:) or .default(encodable:) to set a default value for a JSON column.

Inheritance

Sequelizable

Methods

toSQL()

public func toSQL() -> SQL
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally