Skip to content

geldata/gel-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cce3f19 · Feb 26, 2025
Feb 24, 2025
Feb 24, 2025
Feb 26, 2025
Feb 24, 2025
Feb 24, 2025
Feb 25, 2025
Feb 22, 2025
May 6, 2021
May 13, 2021
Apr 10, 2024
Oct 12, 2021
Feb 26, 2025
Oct 24, 2022
Oct 14, 2020
Feb 24, 2025
Feb 24, 2025
Feb 26, 2025
Feb 26, 2025
Feb 26, 2025
Feb 26, 2025
Feb 26, 2025
Feb 24, 2025
Feb 24, 2025
Feb 24, 2025
Feb 22, 2025
Jan 6, 2025
Feb 24, 2025
Feb 26, 2025
Feb 24, 2025
Feb 25, 2025
Feb 26, 2025
Feb 25, 2025
Feb 26, 2025
Feb 26, 2025
Feb 24, 2025

Repository files navigation

The Go driver for Gel

Build Status Join GitHub discussions

Installation

In your module directory, run the following command.

$ go get github.com/geldata/gel-go

Basic Usage

Follow the Gel tutorial to get Gel installed and minimally configured.

package main

import (
	"context"
	"fmt"
	"log"

	gel "github.com/geldata/gel-go"
	"github.com/geldata/gel-go/gelcfg"
)

func main() {
	ctx := context.Background()
	client, err := gel.CreateClient(ctx, gelcfg.Options{})
	if err != nil {
		log.Fatal(err)
	}
	defer client.Close()

	var result string
	err = client.QuerySingle(ctx, "SELECT 'hello Gel!'", &result)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(result)
}

Development

A local installation of Gel is required to run tests. Download Gel from here or build it manually.

To run the test suite run make test. To run lints make lint.

License

gel-go is developed and distributed under the Apache 2.0 license.