Skip to content

Commit 820f377

Browse files
committed
Update to use chinook.db for example
1 parent 720c53e commit 820f377

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

chinook.db

864 KB
Binary file not shown.

examples/chi/chi.go renamed to examples/chi/main.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
const addr string = ":8080"
1717

1818
func main() {
19-
db, err := sql.Open("sqlite3", "sakila.db")
19+
db, err := sql.Open("sqlite3", "chinook.db")
2020
if err != nil {
2121
log.Fatalf("Error opening database: %v", err)
2222
}
@@ -37,15 +37,6 @@ func main() {
3737
// Setup the handler for SQLiteAdmin
3838
r.Post("/admin", sh.Handle)
3939

40-
fmt.Printf(`
41-
42-
_______ __ __ __ _______ __ __
43-
| __|.-----.| |__| |_.-----.| _ |.--| |.--------.|__|.-----.
44-
|__ || _ || | | _| -__|| || _ || || || |
45-
|_______||__ ||__|__|____|_____||___|___||_____||__|__|__||__||__|__|
46-
|__|
47-
48-
`)
4940
fmt.Printf("--> Starting server on %s\n", addr)
5041
http.ListenAndServe(":8080", r)
5142
}

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module github.com/joelseq/sqliteadmin-go
33
go 1.23.3
44

55
require (
6-
github.com/go-chi/chi/v5 v5.2.0 // indirect
7-
github.com/go-chi/cors v1.2.1 // indirect
8-
github.com/mattn/go-sqlite3 v1.14.24 // indirect
9-
github.com/mitchellh/mapstructure v1.5.0 // indirect
10-
github.com/rs/cors v1.11.1 // indirect
6+
github.com/go-chi/chi/v5 v5.2.0
7+
github.com/go-chi/cors v1.2.1
8+
github.com/mattn/go-sqlite3 v1.14.24
9+
github.com/mitchellh/mapstructure v1.5.0
10+
github.com/rs/cors v1.11.1
1111
)

0 commit comments

Comments
 (0)