From 22c813e216923f752879d04fd532dec67ce2d8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 30 Jul 2015 05:13:50 +0200 Subject: [PATCH] README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cbe29062a..37af45cd5 100644 --- a/README.md +++ b/README.md @@ -312,7 +312,7 @@ The `db.fetchOne(type:sql:arguments:)` function returns an optional value which ## Values -The library ships with built-in support for `Bool`, `Int`, `Int64`, `Double`, `String`, `Blob`, [NSDate](#nsdate-and-nsdatecomponents), [NSDateComponents](#nsdate-and-nsdatecomponents), and [Swift enums](#swift-enums). +The library ships with built-in support for `Bool`, `Int`, `Int32`, `Int64`, `Double`, `String`, `Blob`, [NSDate](#nsdate-and-nsdatecomponents), [NSDateComponents](#nsdate-and-nsdatecomponents), and [Swift enums](#swift-enums). Custom types are supported as well through the [DatabaseValueConvertible](#custom-types) protocol. @@ -619,17 +619,17 @@ SQLite has a funny way to manage values. It is "funny" because it is a rather lo The interested reader should know that GRDB.swift *does not* use SQLite built-in casting features when extracting values. Instead, it performs its *own conversions*, based on the storage class of database values: -| Storage class | Bool | Int ³ | Int64 | Double | String ³ | Blob | -|:------------- |:-------:|:-------:|:--------:|:------:|:---------:|:----:| -| NULL | - | - | - | - | - | - | -| INTEGER | Bool ¹ | Int ² | Int64 | Double | - | - | -| REAL | Bool ¹ | Int ² | Int64 ² | Double | - | - | -| TEXT | - | - | - | - | String | - | -| BLOB | - | - | - | - | - | Blob | +| Storage class | Bool | Int ³ | Int32 | Int64 | Double | String ³ | Blob | +|:------------- |:-------:|:-------:|:--------:|:--------:|:------:|:---------:|:----:| +| NULL | - | - | - | - | - | - | - | +| INTEGER | Bool ¹ | Int ² | Int32 ² | Int64 | Double | - | - | +| REAL | Bool ¹ | Int ² | Int32 ² | Int64 ² | Double | - | - | +| TEXT | - | - | - | - | - | String | - | +| BLOB | - | - | - | - | - | - | Blob | ¹ The only false numbers are 0 (integer) and 0.0 (real). -² You will get a fatal error if the value is too big for Int or Int64. +² You will get a fatal error if the value is too big for Int, Int32 or Int64. ³ Applies also to Int and String-based [enums](#swift-enums).