https://github.com/muroon/memo_sample_spanner
https://github.com/muroon/memo_sample_spanner
clean-architecture cloud-spanner go golang
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/muroon/memo_sample_spanner
- Owner: muroon
- Created: 2019-10-06T05:40:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T10:18:16.000Z (about 6 years ago)
- Last Synced: 2025-01-11T23:18:41.008Z (over 1 year ago)
- Topics: clean-architecture, cloud-spanner, go, golang
- Language: Go
- Size: 166 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# memo sample spanner
The sample code of Cloud Spanner using "The Clean Architecture".
This is updated for Cloud Spanner based on [memo_sample](https://github.com/muroon/memo_sample).
[description of this project(Japanese)](https://gist.github.com/muroon/7daf23236777991a058544bd01ab9cc0)
### environment variable
| env | content |
----|----
| SPN_PROJECT_ID | GCP project ID |
| SPN_INSTANCE_ID | instance ID of Cloud Spanner |
| SPN_DATABASE_ID | database in instance |
### use spanner emulator
You can use local [spanner emulator](https://github.com/gcpug/handy-spanner).
So you must set an environment parameter SPANNER_EMULATOR_HOST.
```
go build
env SPANNER_EMULATOR_HOST=localhost:9999 ./memo_sample_spanner -local
```
### static analysis tool
static analysis tool dedicated to this project
https://github.com/muroon/memo_sample_spanner_analyzer