Skip to content

Commit b43e006

Browse files
authored
Fix typos in DefiningYourSchema.md (#58)
1 parent 3591e01 commit b43e006

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/StructuredQueriesCore/Documentation.docc/Articles/DefiningYourSchema.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Suppose your database has a table defined with the following create statement:
3232

3333
```sql
3434
CREATE 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

121121
Properties 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
123123
use the `@Column` macro to describe the name of the column as it exists in the database in order
124124
to 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
490490
is a very good reason for this.
491491

492492
Through 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.
494494
Each of these alterations to the schema make a snapshot of your entire database's schema that
495495
is frozen in that moment of time. Once a migration has been shipped and run on a user's device
496496
it 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

575575
So, we hope that you will consider it a _benefit_ that your application's schema will be defined and
576576
maintained 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
578578
your application.
579579

580580
## Topics

0 commit comments

Comments
 (0)