@@ -32,7 +32,7 @@ Suppose your database has a table defined with the following create statement:
3232
3333``` sql
3434CREATE TABLE "reminders " (
35- " id" INTEGER PRIMARY KEY AUTOINCREMENT" ,
35+ " id" INTEGER PRIMARY KEY AUTOINCREMENT,
3636 " title" TEXT NOT NULL DEFAULT ' ' ,
3737 " isCompleted" INTEGER DEFAULT 0
3838)
@@ -119,7 +119,7 @@ RemindersList.tableName // "reminders_list"
119119#### Column names
120120
121121Properties of Swift types often differ in formatting from the columns they represent in the
122- database. Most often this is a different of snake case versus camelcase. In such situations you can
122+ database. Most often this is a difference of snake case versus camelcase. In such situations you can
123123use the ` @Column ` macro to describe the name of the column as it exists in the database in order
124124to have your Swift data type represent the most pristine version of itself:
125125
@@ -490,7 +490,7 @@ expansive assortment of tools that make SQL more expressive, type-safe, and sche
490490is a very good reason for this.
491491
492492Through the lifetime of an application you will perform many migrations on your schema. You will
493- add/remove tables, add/remove columns, add/remove indicies , add/remove constraints, and more.
493+ add/remove tables, add/remove columns, add/remove indices , add/remove constraints, and more.
494494Each of these alterations to the schema make a snapshot of your entire database's schema that
495495is frozen in that moment of time. Once a migration has been shipped and run on a user's device
496496it should never be edited again. Therefore it is not appropriate to use the statically known
@@ -568,13 +568,13 @@ If it worries you to write SQL strings by hand, then fear not! For a few reasons
568568 * It may seem dangerous to write SQL strings. After all, aren't they susceptible to SQL injection
569569 attacks and typos? The ` #sql ` macro protects you against any SQL injection attacks, and provides
570570 some basic linting to make sure your SQL is roughly correct. And typos are not common in table
571- definition statements since an unexpect database schema is a very visible bug in your
571+ definition statements since an unexpected database schema is a very visible bug in your
572572 application, as opposed to a small part of a ` SELECT ` statement that is only run every once in
573573 awhile in your app.
574574
575575So, we hope that you will consider it a _ benefit_ that your application's schema will be defined and
576576maintained as simple SQL strings. It's a simple format that everyone familiar with SQLite will
577- understand, and it makes your application most resillient to the ever growing changes and demands on
577+ understand, and it makes your application most resilient to the ever growing changes and demands on
578578your application.
579579
580580## Topics
0 commit comments