File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import (
1616const addr string = ":8080"
1717
1818func 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}
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ module github.com/joelseq/sqliteadmin-go
33go 1.23.3
44
55require (
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)
You can’t perform that action at this time.
0 commit comments