# README
The Go driver for EdgeDB
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.
# Packages
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NetworkError indicates that the transaction was interupted by a network error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Serializable is the only isolation level.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TLSModeDefault makes security mode inferred from other options.
TLSModeInsecure results in no certificate verification whatsoever.
TLSModeNoHostVerification enables certificate verification against CAs, but hostname matching is not performed.
TLSModeStrict enables full certificate and hostname verification.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TxConflict indicates that the server could not complete a transaction because it encountered a deadlock or serialization error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
CreateClient returns a new client.
CreateClientDSN returns a new client.
DurationFromNanoseconds creates a Duration represented as microseconds from a [time.Duration] represented as nanoseconds.
NewDateDuration returns a new DateDuration.
NewLocalDate returns a new LocalDate.
NewLocalDateTime returns a new LocalDateTime.
NewLocalTime returns a new LocalTime.
NewOptionalBigInt is a convenience function for creating an OptionalBigInt with its value set to v.
NewOptionalBool is a convenience function for creating an OptionalBool with its value set to v.
NewOptionalBytes is a convenience function for creating an OptionalBytes with its value set to v.
NewOptionalDateDuration is a convenience function for creating an OptionalDateDuration with its value set to v.
NewOptionalDateTime is a convenience function for creating an OptionalDateTime with its value set to v.
NewOptionalDuration is a convenience function for creating an OptionalDuration with its value set to v.
NewOptionalFloat32 is a convenience function for creating an OptionalFloat32 with its value set to v.
NewOptionalFloat64 is a convenience function for creating an OptionalFloat64 with its value set to v.
NewOptionalInt16 is a convenience function for creating an OptionalInt16 with its value set to v.
NewOptionalInt32 is a convenience function for creating an OptionalInt32 with its value set to v.
NewOptionalInt64 is a convenience function for creating an OptionalInt64 with its value set to v.
NewOptionalLocalDate is a convenience function for creating an OptionalLocalDate with its value set to v.
NewOptionalLocalDateTime is a convenience function for creating an OptionalLocalDateTime with its value set to v.
NewOptionalLocalTime is a convenience function for creating an OptionalLocalTime with its value set to v.
NewOptionalMemory is a convenience function for creating an OptionalMemory with its value set to v.
NewOptionalRangeDateTime is a convenience function for creating an OptionalRangeDateTime with its value set to v.
NewOptionalRangeFloat32 is a convenience function for creating an OptionalRangeFloat32 with its value set to v.
NewOptionalRangeFloat64 is a convenience function for creating an OptionalRangeFloat64 with its value set to v.
NewOptionalRangeInt32 is a convenience function for creating an OptionalRangeInt32 with its value set to v.
NewOptionalRangeInt64 is a convenience function for creating an OptionalRangeInt64 with its value set to v.
NewOptionalRangeLocalDate is a convenience function for creating an OptionalRangeLocalDate with its value set to v.
NewOptionalRangeLocalDateTime is a convenience function for creating an OptionalRangeLocalDateTime with its value set to v.
NewOptionalRelativeDuration is a convenience function for creating an OptionalRelativeDuration with its value set to v.
NewOptionalStr is a convenience function for creating an OptionalStr with its value set to v.
NewOptionalUUID is a convenience function for creating an OptionalUUID with its value set to v.
NewRangeDateTime creates a new RangeDateTime value.
NewRangeFloat32 creates a new RangeFloat32 value.
NewRangeFloat64 creates a new RangeFloat64 value.
NewRangeInt32 creates a new RangeInt32 value.
NewRangeInt64 creates a new RangeInt64 value.
NewRangeLocalDate creates a new RangeLocalDate value.
NewRangeLocalDateTime creates a new RangeLocalDateTime value.
NewRelativeDuration returns a new RelativeDuration.
NewRetryOptions returns the default RetryOptions value.
NewRetryRule returns the default RetryRule value.
NewTxOptions returns the default TxOptions value.
ParseUUID parses s into a UUID or returns an error.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author