• Stars
    star
    152
  • Rank 237,683 (Top 5 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The official Go client library for EdgeDB

The Go driver for EdgeDB

Build Status Join GitHub discussions

Installation

In your module directory, run the following command.

$ go get github.com/edgedb/edgedb-go

Basic Usage

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

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/edgedb/edgedb-go"
)

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

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

	fmt.Println(result)
}

Development

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

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

License

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

More Repositories

1

edgedb

A graph-relational database with declarative schema, built-in migration system, and a next-generation query language
Python
12,123
star
2

edgedb-js

The official TypeScript/JS client library and query builder for EdgeDB
TypeScript
479
star
3

edgedb-python

The official Python client library for EdgeDB
Python
349
star
4

imdbench

IMDBench โ€”ย Realistic ORM benchmarking
Python
209
star
5

edgedb-rust

The official Rust binding for EdgeDB
Rust
198
star
6

edgedb-cli

The EdgeDB CLI
Rust
152
star
7

edgedb-elixir

Elixir client for EdgeDB
Elixir
85
star
8

edgedb-deno

EdgeDB driver for Deno
TypeScript
80
star
9

remix

A Remix stack for EdgeDB-backed applications
JavaScript
78
star
10

edgedb-net

The official .NET client library for EdgeDB
C#
77
star
11

edgedb-docker

Official Docker Image packaging for EdgeDB
Shell
73
star
12

easy-edgedb

An illustrated textbook designed to be a one-stop shop for learning EdgeDB
66
star
13

edgedb-examples

EdgeDB example projects for different stacks
TypeScript
55
star
14

edgedb-ui

The home of EdgeDB UI and all related shared UI components
TypeScript
47
star
15

rfcs

RFCs for major changes to EdgeDB
Python
34
star
16

edgedb-vim

EdgeDB + Vim
Python
31
star
17

awesome-edgedb

A curated list of resources related to EdgeDB.
30
star
18

edgedb-editor-plugin

EdgeDB plugin for Sublime Text, Atom, and VSCode
JavaScript
27
star
19

edgedb-dart

Dart
27
star
20

setup-edgedb

A GitHub Action to install EdgeDB and its CLI
TypeScript
18
star
21

edgedb-java

The official Java client library for EdgeDB
Java
17
star
22

mcu-sandbox

A movie schema sandbox for playing with EdgeDB and the EdgeQL query builder, pre-loaded with MCU data
TypeScript
15
star
23

metapkg

Multi-platform native package builder toolkit
Python
14
star
24

edgedb-deploy

EdgeDB Deployment Recipes and Scripts
Shell
9
star
25

edgedb-grafana-frontend

A frontend plugin for Grafana that fetches data from an HTTP endpoint responding to EdgeQL queries
TypeScript
8
star
26

edgedb-grafana-backend

Grafana backend plugin for EdgeDB
TypeScript
8
star
27

simpletodo

A preposterously simple todo app powered by EdgeDB
TypeScript
6
star
28

edgedb-wasm

Rust
5
star
29

homebrew-tap

Install nightly EdgeDB packages in Homebrew
Ruby
4
star
30

cla-bot

A GitHub bot and Web UI for managing contributor license agreements
TypeScript
4
star
31

website

A read-only mirror of the edgedb.com repo.
HTML
3
star
32

shared-client-testcases

3
star
33

action-release

A Github Action to automate package releases.
TypeScript
3
star
34

heroku-buildpack-edgedb

Run EdgeDB in a dyno along with your application.
Shell
2
star
35

libvirt-aws

Python
2
star
36

edgedb-js-lexer

Rust
1
star
37

edgedb-pkg

EdgeDB Release Packaging Toolkit
Dockerfile
1
star
38

chinook

A sample EdgeDb project seeded with chinook sample database
Python
1
star
39

packages-nix

Nix
1
star