Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Feb 21, 2021
1 parent 8a28f8f commit 3219e1f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ github.com/mattn/go-sqlite3 v1.14.6 h1:dNPt6NO46WmLVt2DLNpwczCmdV5boIZ6g/tlDrlRU
github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw=
github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
github.com/russolsen/ohyeah v0.0.0-20160324131710-f4938c005315 h1:H3hCXwP92pH/hSgNrCLtjxvsKJ50sq26nICbZuoR1tQ=
github.com/russolsen/ohyeah v0.0.0-20160324131710-f4938c005315/go.mod h1:ZbKa3zlLnhGF1dAeJtMSoNtM5LgFQnqzq8eYH3uYYkU=
github.com/russolsen/same v0.0.0-20160222130632-f089df61f51d h1:A926QrjwToaPS7giC4UOBjHhdukq9l1Y15r3qkXYwCY=
github.com/russolsen/same v0.0.0-20160222130632-f089df61f51d/go.mod h1:Cpq811GTlHevuU6BZxk3ObOdK8AY5gHu9QGmDak0DT4=
github.com/russolsen/transit v0.0.0-20180705123435-0794b4c4505a h1:yVNJFSzkEG8smsvd9udiQcMJA0MIsFvlG7ba314cu+s=
github.com/russolsen/transit v0.0.0-20180705123435-0794b4c4505a/go.mod h1:TPq+fcJOdGrkpZpXF4UVmFjYxH0gGqnxdgZ+OzAmvJk=
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func processMessage(message *babashka.Message) {
Format: "transit+json",
Namespaces: []babashka.Namespace{
{
Name: "pod.babashka.sqlite3",
Name: "pod.babashka.go-sqlite3",
Vars: []babashka.Var{
{
Name: "execute!",
Expand Down Expand Up @@ -162,7 +162,7 @@ func processMessage(message *babashka.Message) {
defer conn.Close()

switch message.Var {
case "pod.babashka.sqlite3/execute!":
case "pod.babashka.go-sqlite3/execute!":
res, err := conn.Exec(query, args...)
if err != nil {
babashka.WriteErrorResponse(message, err)
Expand All @@ -174,7 +174,7 @@ func processMessage(message *babashka.Message) {
} else {
respond(message, json)
}
case "pod.babashka.sqlite3/query":
case "pod.babashka.go-sqlite3/query":
res, err := conn.Query(query, args...)
if err != nil {
babashka.WriteErrorResponse(message, err)
Expand Down
2 changes: 1 addition & 1 deletion test/honeysql.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

(pods/load-pod "./pod-babashka-go-sqlite3")

(require '[pod.babashka.sqlite3 :as sqlite])
(require '[pod.babashka.go-sqlite3 :as sqlite])

(.delete (io/file "/tmp/foo.db"))

Expand Down
2 changes: 1 addition & 1 deletion test/script.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

(prn (pods/load-pod "./pod-babashka-go-sqlite3"))

(require '[pod.babashka.sqlite3 :as sqlite])
(require '[pod.babashka.go-sqlite3 :as sqlite])

(.delete (io/file "/tmp/foo.db"))

Expand Down

0 comments on commit 3219e1f

Please sign in to comment.