Skip to content

Commit

Permalink
Rename to pod-babashka-go-sqlite3 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude authored Feb 21, 2021
1 parent c9ecab0 commit d093a77
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 38 deletions.
32 changes: 15 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
- checkout
- restore_cache:
keys:
- pod-babashka-sqlite3-{{ checksum "go.sum" }}-{{ checksum ".circleci/config.yml" }}
- pod-babashka-go-sqlite3-{{ checksum "go.sum" }}-{{ checksum ".circleci/config.yml" }}
- run:
name: Build binary
command: go build -o pod-babashka-sqlite3 main.go
command: go build -o pod-babashka-go-sqlite3 main.go
- run:
name: Install bb for test
command: |
Expand All @@ -22,16 +22,16 @@ jobs:
name: Run test
command: PATH=$PATH:bb script/test
- save_cache:
key: pod-babashka-sqlite3-{{ checksum "go.sum" }}-{{ checksum ".circleci/config.yml" }}
key: pod-babashka-go-sqlite3-{{ checksum "go.sum" }}-{{ checksum ".circleci/config.yml" }}
paths:
- "/go/pkg/mod"
- run:
name: Release
command: |
VERSION=$(cat resources/POD_BABASHKA_SQLITE3_VERSION)
VERSION=$(cat resources/POD_BABASHKA_GO_SQLITE3_VERSION)
mkdir release
zip "release/pod-babashka-sqlite3-$VERSION-linux-amd64.zip" pod-babashka-sqlite3
zip "release/pod-babashka-go-sqlite3-$VERSION-linux-amd64.zip" pod-babashka-go-sqlite3
- store_artifacts:
path: release
destination: release
Expand All @@ -43,15 +43,14 @@ jobs:
- run:
name: Install Go
command: curl -L https://git.io/vQhTU | bash
- restore_cache:
keys:
- pod-babashka-sqlite3-{{ checksum "go.sum" }}-{{ checksum ".circleci/config.yml" }}
# - restore_cache:
# keys:
# - pod-babashka-go-sqlite3-{{ checksum "go.sum" }}-{{ checksum ".circleci/config.yml" }}
- run:
name: Build binary
command: |
source /Users/$(whoami)/.bashrc
go build -o pod-babashka-sqlite3 main.go
go build -o pod-babashka-go-sqlite3 main.go
- run:
name: Install bb for test
command: |
Expand All @@ -62,19 +61,18 @@ jobs:
name: Run test
command: |
source /Users/$(whoami)/.bashrc
PATH=$PATH:bb script/test
- save_cache:
key: pod-babashka-sqlite3-{{ checksum "go.sum" }}-{{ checksum ".circleci/config.yml" }}
paths:
- "/go/pkg/mod"
# - save_cache:
# key: pod-babashka-go-sqlite3-{{ checksum "go.sum" }}-{{ checksum ".circleci/config.yml" }}
# paths:
# - "/go/pkg/mod"
- run:
name: Release
command: |
VERSION=$(cat resources/POD_BABASHKA_SQLITE3_VERSION)
VERSION=$(cat resources/POD_BABASHKA_GO_SQLITE3_VERSION)
mkdir release
zip "release/pod-babashka-sqlite3-$VERSION-macos-amd64.zip" pod-babashka-sqlite3
zip "release/pod-babashka-go-sqlite3-$VERSION-macos-amd64.zip" pod-babashka-go-sqlite3
- store_artifacts:
path: release
destination: release
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# vendor/
main
fiddle
pod-babashka-sqlite3
pod-babashka-go-sqlite3
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pod-babashka-sqlite3
# pod-babashka-go-sqlite3

A [babashka pod](https://github.com/babashka/babashka.pods) for interacting with [sqlite3](https://www.sqlite.org/index.html).

Expand Down Expand Up @@ -99,7 +99,7 @@ See [test/honeysql.clj](test/honeysql.clj) for a HoneySQL example script.

- [Go](https://golang.org/dl/) 1.15+ should be installed.
- Clone this repo.
- Run `go build -o pod-babashka-sqlite3 main.go` to compile the binary.
- Run `go build -o pod-babashka-go-sqlite3 main.go` to compile the binary.

## License

Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ build_script:
set PATH=C:\msys64\mingw64\bin;%PATH%
go build -o pod-babashka-sqlite3.exe main.go
go build -o pod-babashka-go-sqlite3.exe main.go
set /P VERSION=< resources\POD_BABASHKA_SQLITE3_VERSION
jar -cMf pod-babashka-sqlite3-%VERSION%-windows-amd64.zip pod-babashka-sqlite3.exe
jar -cMf pod-babashka-go-sqlite3-%VERSION%-windows-amd64.zip pod-babashka-go-sqlite3.exe
artifacts:
- path: pod-babashka-sqlite3-*-windows-amd64.zip
name: pod-babashka-sqlite3
- path: pod-babashka-go-sqlite3-*-windows-amd64.zip
name: pod-babashka-go-sqlite3
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/babashka/pod-babashka-sqlite3
module github.com/babashka/pod-babashka-go-sqlite3

go 1.15

Expand Down
9 changes: 0 additions & 9 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
github.com/babashka/pod-babashka-fswatcher v0.0.2 h1:Voo/lIO7awMwL2X7YHjpcJQa76E4WRHrN7b06OoQF3I=
github.com/babashka/pod-babashka-fswatcher v0.0.2/go.mod h1:fsiTVpGHCNNGkz5Y3ZjwT4gzH7eu1jc6i4uFPva4HkI=
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/google/uuid v1.0.0 h1:b4Gk+7WdP/d3HZH8EJsZpvV7EtDOgaZLtnaNGIu1adA=
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/jackpal/bencode-go v1.0.0 h1:lzbSPPqqSfWQnqVNe/BBY1NXdDpncArxShL10+fmFus=
Expand All @@ -10,14 +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=
github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201223074533-0d417f636930 h1:vRgIt+nup/B/BwIS0g2oC0haq0iqbV3ZA+u6+0TlNCo=
golang.org/x/sys v0.0.0-20201223074533-0d417f636930/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"container/list"
"database/sql"

"github.com/babashka/pod-babashka-sqlite3/babashka"
"github.com/babashka/pod-babashka-go-sqlite3/babashka"
_ "github.com/mattn/go-sqlite3" // Import go-sqlite3 library
"github.com/russolsen/transit"
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion script/test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

go build -o pod-babashka-sqlite3 main.go && test/script.clj
go build -o pod-babashka-go-sqlite3 main.go && test/script.clj
2 changes: 1 addition & 1 deletion test/honeysql.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(require '[honeysql.core :as sql]
'[honeysql.helpers :as helpers])

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

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

Expand Down
2 changes: 1 addition & 1 deletion test/script.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[clojure.java.io :as io]
[clojure.test :as t :refer [deftest is testing]]))

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

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

Expand Down

0 comments on commit d093a77

Please sign in to comment.