Skip to content

DatabaseValue

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

DatabaseValue

Represents the type / value combo of an SQL database field. These don't necessarily correspond to a specific SQL database's types; they just represent the types that Alchemy current supports.

public enum DatabaseValue

All fields are optional by default, it's up to the end user to decide if a nil value in that field is appropriate and potentially throw an error.

Inheritance

Equatable, Parameter

Enumeration Cases

int

An Int value.

case int(: Int?)

double

A Double value.

case double(: Double?)

bool

A Bool value.

case bool(: Bool?)

string

A String value.

case string(: String?)

date

A Date value.

case date(: Date?)

json

A JSON value, given as Data.

case json(: Data?)

uuid

A UUID value.

case uuid(: UUID?)

Properties

isNil

Indicates if the associated value inside this enum is nil.

var isNil: Bool

value

var value: DatabaseValue
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally