Skip to content

Commit d61d45e

Browse files
authored
Update README.md
1 parent d3d88e8 commit d61d45e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ let database = try DB(path: "...")
4949

5050
// Execute the query
5151
let todos = try await database.todoQueries.selectTodos.execute()
52-
53-
// The `Todo` struct is automatically generated for the table
54-
// meaning your schema and swift code will never get out of sync
5552
for todo in todos {
5653
print(todo.id, todo.name, todo.completedOn)
5754
}
@@ -72,7 +69,7 @@ class ViewModel {
7269

7370
let live = ViewModel(selectTodos: db.todoQueries.selectTodos)
7471

75-
let test = ViewModel(selectTodos: Queries.Just([...]))
72+
let test = ViewModel(selectTodos: Queries.Just([Todo(...)]))
7673
```
7774

7875
### Or Use the Swift Macro

0 commit comments

Comments
 (0)