go-driver icon indicating copy to clipboard operation
go-driver copied to clipboard

The official ArangoDB go driver.

Results 41 go-driver issues
Sort by recently updated
recently updated
newest added

I write a document to a collection with a transaction and then before I end the transaction with commit, I want to write an edges. When writing the edges it...

Hi. I believe this could be a big security concern. It also seems it comes from Arango itself so it could be even more of a problem. Using the Client.DatabaseExists...

Here is sending message for notify listeners: https://github.com/arangodb/go-driver/blob/master/vst/protocol/message.go#L58 Here are 2 reads from this channel: 1. https://github.com/arangodb/go-driver/blob/master/vst/connection.go#L169 2. https://github.com/arangodb/go-driver/blob/master/vst/authentication.go#L143 If readers doesn't read from channel, then write is locked and...

How to initiate a pregel call via /_db/_system/_api/control_pregel? I call like this, but it does not return result: ` `func (db *dbService) QueryPregel2(reqParams interface{}) (error, interface{}) { conn := db.client.Connection()...

According to [documentation](https://www.arangodb.com/docs/3.7/indexing-ttl.html#removing-documents-at-certain-points-in-time), you can set `expireAt` to **0**. However, when using `EnsureTTLIndex` collection method provided by `go-driver` package: ```go _, _, err := col.EnsureTTLIndex(ctx, "expireAt", 0, &driver.EnsureTTLIndexOptions{}) if err...

``` conn, _ := http.NewConnection(http.ConnectionConfig{ Endpoints: []string{"endpoint_a", "endpoint_b", "endpoint_c"}, }) c, _ := driver.NewClient(driver.ClientConfig{ Connection: conn, Authentication: driver.BasicAuthentication("user", "passwd"), }) ctx := context.Background() db, _ := c.Database(ctx, "mydatabase") found, _...

I would like to be able to store Protobuf Go structs directly in ArangoDB. The problem is that the standard "encoding/json" marshall/unmarshall doesn't work correctly on all Protobuf messages. For...

won't fix

As the reposnse of a query it's already in JSON format and sometimes it's only required to forward the results, Marshal and Unmarshal the results it's a waste of resources.

## Problem You seem to be using [`context.Context`](https://golang.org/pkg/context/#Context) for optional parameters such as in [`database.Query()`](https://godoc.org/github.com/arangodb/go-driver#Database) which can be considered an API design flaw for the following arguments: ### Official recommendations...