fluent-kit

1.32.0

Swift ORM (queries, models, and relations) for NoSQL and SQL databases
vapor/fluent-kit

What's New

Formatted boolean properties

2022-07-01T00:45:45Z
This patch was authored and released by @gwynne.

Adds two new property types to Fluent: @Boolean and @OptionalBoolean. These properties always have Bool values, and can be configured with a storage format, similarly to @Timestamp. For example, the .trueFalse format stores the strings "true" and "false" in the database, and parses those strings on load. If no format is specified, the database's default native format for Bool is used, equivalently to using @Field or @OptionalField. An appropriate column data type must be specified in the migration for the model.

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

Last updated: Thu Jun 30 2022 23:46:16 GMT-0500 (GMT-05:00)