https://github.com/adonmo/go-room-examples
Example Usage of go-room
https://github.com/adonmo/go-room-examples
Last synced: 9 months ago
JSON representation
Example Usage of go-room
- Host: GitHub
- URL: https://github.com/adonmo/go-room-examples
- Owner: adonmo
- License: mit
- Created: 2020-06-27T11:04:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-29T14:23:23.000Z (almost 6 years ago)
- Last Synced: 2025-03-16T19:21:36.134Z (over 1 year ago)
- Language: Go
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-room-examples
Example Usage of go-room
#### The main function exposes a command line utility interface with following options:
- dumpData (true by default) => Dump the data from database after Init (default true)
- insertSamples (true by default) => Should insert samples after init? (default true)
- version int (Needs non negative value [1,3]) => Version number of the database schema for which init must be run
#### Example Usage
```bash
go build *.go
./main -version=1
```
This will initialize the DB for version 1 schema. You can run the command with version=2 or version=3 to check if upgrade works