|
42 | 42 | let db = try Connection("path/to/db.sqlite3")
|
43 | 43 |
|
44 | 44 | 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") |
48 | 48 |
|
49 | 49 | try db.run(users.create { t in
|
50 | 50 | t.column(id, primaryKey: true)
|
|
83 | 83 | }
|
84 | 84 | ```
|
85 | 85 |
|
| 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 | + |
86 | 89 | SQLite.swift also works as a lightweight, Swift-friendly wrapper over the C
|
87 | 90 | API.
|
88 | 91 |
|
|
0 commit comments