Skip to content

Structure

IntegerBooleanPropertyFormat

Represent a Bool as any integer type. Any value other than 0 or 1 is considered invalid.
struct IntegerBooleanPropertyFormat<T> where T : Decodable, T : Encodable, T : FixedWidthInteger, T : Sendable

Overview

Note

This format is primarily useful when the underlying database’s native boolean format is an integer of different width than the one that was used by the model - for example, a MySQL model with a BIGINT field instead of the default TINYINT.

Topics

Initializers

Instance Methods

Relationships

Conforms To