Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
updating tutorial to use modernc.sql/sqlite
  • Loading branch information
werelord committed Aug 26, 2024
commit 617b625d899a18fb93a370a2282ea733e2e64a36
4 changes: 2 additions & 2 deletions docs/tutorials/getting-started-sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ import (
"log"
"reflect"

_ "github.com/mattn/go-sqlite3"
_ "modernc.org/sqlite"

"tutorial.sqlc.dev/app/tutorial"
)
Expand All @@ -139,7 +139,7 @@ var ddl string
func run() error {
ctx := context.Background()

db, err := sql.Open("sqlite3", ":memory:")
db, err := sql.Open("sqlite", ":memory:")
if err != nil {
return err
}
Expand Down