sqlite-nio

1.1.0

Non-blocking wrapper for libsqlite3-dev using SwiftNIO
vapor/sqlite-nio

What's New

Improve SQLite Boolean decoding

2020-09-24T19:36:39Z
This patch was authored by @wibed and released by @tanner0101.

Allows for a boolean field to be stored as string.

.field("is_true", .string, .required)

Additionally it is now its separate type, together with the other types, instead of referring to an anonymous int
for a return, which makes It cleaner.

Before:
If the field type of a presumed boolean is set to string. it results in below error msg

typeMismatch(Swift.Bool, Swift.DecodingError.Context(codingPath: [], debugDescription: "Could not initialize Bool from \"0\".", underlyingError: nil))

Description

  • Swift Tools 5.2.0

Dependencies

Last updated: Thu May 13 2021 19:22:22 GMT-0500 (GMT-05:00)