https://github.com/egorgasay/itisadb-go-sdk
itisadb Driver and Toolkit
https://github.com/egorgasay/itisadb-go-sdk
database driver go package
Last synced: 3 months ago
JSON representation
itisadb Driver and Toolkit
- Host: GitHub
- URL: https://github.com/egorgasay/itisadb-go-sdk
- Owner: egorgasay
- License: mit
- Created: 2023-04-10T21:05:29.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-24T08:21:03.000Z (about 2 years ago)
- Last Synced: 2026-01-14T23:57:05.643Z (6 months ago)
- Topics: database, driver, go, package
- Language: Go
- Homepage:
- Size: 177 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `itisadb-go-sdk` - itisadb Driver and Toolkit [](https://pkg.go.dev/golang.org/x/mod)
### [itisadb](https://github.com/egorgasay/itisadb) is a system consisting of several microservices (Memory Balancer, Storage, WebApplication), which is a distributed key-value database.
# [Documentation](https://pkg.go.dev/github.com/egorgasay/itisadb-go-sdk)
# Installation
```bash
go get github.com/egorgasay/itisadb-go-sdk
```
# Quick start
```go
package main
import (
"context"
"github.com/egorgasay/itisadb-go-sdk"
"log"
)
// main to run this test, itisadb must be run on :8888.
func main() {
ctx := context.TODO()
db := itisadb.New(ctx, ":8888").Unwrap()
db.SetOne(ctx, "qwe", "111").Unwrap()
if x := db.GetOne(ctx, "qwe").Unwrap().Value; x != "111" {
log.Fatal("Wrong value")
} else {
log.Println("Value:", x)
}
}
```