Extensions
The following extensions are available globally.
-
Declaration
Swift
struct Array<Element> : RandomAccessCollection, MutableCollection
-
Declaration
Swift
struct Set<Element> : SetAlgebra, Hashable, Collection, ExpressibleByArrayLiteral where Element : Hashable
-
Declaration
Swift
protocol Sequence
-
Swift’s Optional comes with built-in methods that allow to fetch cursors and arrays of optional DatabaseValueConvertible:
try Optional<String>.fetchCursor(db, "SELECT name FROM ...", arguments:...) // Cursor of String? try Optional<String>.fetchAll(db, "SELECT name FROM ...", arguments:...) // [String?] let statement = try db.makeSelectStatement("SELECT name FROM ...") try Optional<String>.fetchCursor(statement, arguments:...) // Cursor of String? try Optional<String>.fetchAll(statement, arguments:...) // [String?]
DatabaseValueConvertible is adopted by Bool, Int, String, etc.
See moreDeclaration
Swift
enum Optional<Wrapped> : ExpressibleByNilLiteral
-
NSData is convertible to and from DatabaseValue.
See moreDeclaration
Swift
class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding
-
Undocumented
See more
-
Declaration
Swift
struct Range<Bound> where Bound : Comparable
-
Declaration
Swift
struct ClosedRange<Bound> where Bound : Comparable
-
Declaration
Swift
struct CountableRange<Bound> : RandomAccessCollection where Bound : Comparable, Bound : _Strideable, Bound.Stride : SignedInteger
-
Declaration
Swift
struct CountableClosedRange<Bound> : RandomAccessCollection where Bound : Comparable, Bound : _Strideable, Bound.Stride : SignedInteger
-
Bool adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct Bool
-
Int adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct Int : FixedWidthInteger, SignedInteger
-
Int8 adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct Int8 : FixedWidthInteger, SignedInteger
-
Int16 adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct Int16 : FixedWidthInteger, SignedInteger
-
Int32 adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct Int32 : FixedWidthInteger, SignedInteger
-
Int64 adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct Int64 : FixedWidthInteger, SignedInteger
-
UInt adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct UInt : FixedWidthInteger, UnsignedInteger
-
UInt8 adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct UInt8 : FixedWidthInteger, UnsignedInteger
-
UInt16 adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct UInt16 : FixedWidthInteger, UnsignedInteger
-
UInt32 adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct UInt32 : FixedWidthInteger, UnsignedInteger
-
UInt64 adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct UInt64 : FixedWidthInteger, UnsignedInteger
-
Double adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct Double
-
Float adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct Float
-
String adopts DatabaseValueConvertible and StatementColumnConvertible.
See moreDeclaration
Swift
struct String