Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aurora-is-near/aurora-relayer-sqlblock
https://github.com/aurora-is-near/aurora-relayer-sqlblock
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aurora-is-near/aurora-relayer-sqlblock
- Owner: aurora-is-near
- Created: 2022-08-26T14:41:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T11:05:02.000Z (almost 2 years ago)
- Last Synced: 2023-07-27T21:56:02.123Z (over 1 year ago)
- Language: Go
- Size: 401 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aurora Relayer block sql
Lib that converts Block struct to INSERT SQL.
## How to use
```go
import (
sqlblock "github.com/aurora-is-near/aurora-relayer-sqlblock"
)func main() {
var block sqlblock.Block
json.Unmarshal([]byte(content), &block)
sql := block.InsertSql()
fmt.Println(sql)
}
```## How to test
1. `cp config/test.yaml_example config/test.yaml`
2. Modify `database` in `config/test.yaml` file.
3. Run `go test`