-
Notifications
You must be signed in to change notification settings - Fork 14
DatabaseValue
Josh Wright edited this page Jan 14, 2021
·
3 revisions
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.
Equatable
, Parameter
An Int
value.
case int(: Int?)
A Double
value.
case double(: Double?)
A Bool
value.
case bool(: Bool?)
A String
value.
case string(: String?)
A Date
value.
case date(: Date?)
A JSON value, given as Data
.
case json(: Data?)
A UUID
value.
case uuid(: UUID?)
Indicates if the associated value inside this enum is nil.
var isNil: Bool
var value: DatabaseValue
Generated at 2021-01-13T22:24:59-0800 using swift-doc 1.0.0-beta.5.
Alchemy
Types
- AlterTableBuilder
- BCryptDigest
- BasicAuthMiddleware
- BcryptError
- BelongsToRelationship
- CORSMiddleware
- CORSMiddleware.AllowOriginSetting
- CORSMiddleware.Configuration
- ColumnType
- CreateColumn
- CreateColumnBuilder
- CreateIndex
- CreateTableBuilder
- DatabaseConfig
- DatabaseError
- DatabaseField
- DatabaseKeyMappingStrategy
- DatabaseValue
- DayUnit
- Env
- FrequencyTyped
- Grammar
- HTTPAuth
- HTTPAuth.Basic
- HTTPAuth.Bearer
- HTTPBody
- HTTPError
- HasManyRelationship
- HasOneRelationship
- HasRelationship
- HourUnit
- JoinClause
- JoinType
- Launch
- Log
- MIMEType
- MinuteUnit
- ModelQuery
- MySQLDatabase
- Operator
- OrderClause
- OrderClause.Sort
- OrderedDictionary
- PapyrusClientError
- PathParameter
- PathParameter.DecodingError
- PostgresDatabase
- Query
- Request
- Response
- Router
- RuneError
- SQL
- SQLJSON
- Scheduler
- Schema
- SecondUnit
- Services
- Socket
- StaticFileMiddleware
- StringLength
- Thread
- TokenAuthMiddleware
- WeekUnit
- Weekday
- WhereBoolean
- WhereColumn
- WhereIn
- WhereIn.InType
- WhereNested
- WhereRaw
- WhereValue