Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 22d30c8

Browse files
add SQLite. prefix for Expression in README
1 parent 7ef8343 commit 22d30c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ do {
4242
let db = try Connection("path/to/db.sqlite3")
4343

4444
let users = Table("users")
45-
let id = Expression<Int64>("id")
46-
let name = Expression<String?>("name")
47-
let email = Expression<String>("email")
45+
let id = SQLite.Expression<Int64>("id")
46+
let name = SQLite.Expression<String?>("name")
47+
let email = SQLite.Expression<String>("email")
4848

4949
try db.run(users.create { t in
5050
t.column(id, primaryKey: true)
@@ -83,6 +83,9 @@ do {
8383
}
8484
```
8585

86+
Note that `Expression` should be written as `SQLite.Expression` to avoid
87+
conflicts with the `SwiftUI.Expression` if you are using SwiftUI too.
88+
8689
SQLite.swift also works as a lightweight, Swift-friendly wrapper over the C
8790
API.
8891

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /