https://github.com/rockset/go-sql-driver
https://github.com/rockset/go-sql-driver
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rockset/go-sql-driver
- Owner: rockset
- License: apache-2.0
- Created: 2023-04-18T14:24:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T15:36:27.000Z (almost 3 years ago)
- Last Synced: 2023-10-30T16:38:30.943Z (almost 3 years ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go SQL driver for Rockset
This go module is a
[SQL driver](https://pkg.go.dev/database/sql/driver)
for the
[Rockset](https://rockset.com/)
database.
It currently only support the base SQL types
* `int64` using `rockset.Int64`
* `float64`
* `bool`
* `[]byte`
* `string`
* `time.Time` using `rockset.Time`
## Usage
To use this driver you need a Rockset organization, and create an API key.
```go
db, err := sql.Open("rockset", "rockset://")
// check error
rows, err := db.QueryContext(ctx, "...")
// check error
for rows.Next() {
err = rows.Scan(&var1, &var2)
// check error
}
```