Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ MQL queries and Prism entity metadata.
## Installation

Use Go 1.23 or newer and a Polypheny server with a compatible Prism 2.x
interface. The driver uses the released Prism 2.2 Go bindings as a Go module.
interface. The driver includes the generated Go bindings from the Prism 2.2 release.
Document collection metadata requires server-side Prism 2.2 support.

```sh
Expand Down Expand Up @@ -80,6 +80,8 @@ Import the driver as `polypheny` instead of the blank import and use
queries an existing `employees` collection or table in the default
namespace, then lists the entities in `public`. Call
`SearchEntities` with a pattern pointer to filter the results.
The response types are available in
`github.com/polypheny/Polypheny-Go-Driver/prism`.

```go
conn, err := db.Conn(ctx)
Expand Down Expand Up @@ -121,6 +123,13 @@ that supports Prism 2.2. The tests create and remove their own fixtures.
POLYPHENY_TEST_DSN='localhost:20590,pa:' go test -count=1 -run '^TestIntegration' ./...
```

## Updating the Prism bindings

When updating Prism, set the version and SHA-256 of its official Go release
archive in `scripts/update-prism-bindings.sh`, run the script, and commit the
generated `prism/` files. Run the script with `--check` to compare the tracked
files with the verified archive. Builds use the tracked files directly.

## Resources

- [Go package documentation](https://pkg.go.dev/github.com/polypheny/Polypheny-Go-Driver)
Expand Down
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"sync/atomic"
"time"

"github.com/polypheny/Polypheny-Prism-API/go/v2/prism"
"github.com/polypheny/Polypheny-Go-Driver/prism"
"google.golang.org/protobuf/proto"
)

Expand Down
2 changes: 1 addition & 1 deletion connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"net"

"github.com/polypheny/Polypheny-Prism-API/go/v2/prism"
"github.com/polypheny/Polypheny-Go-Driver/prism"
)

// Connector implements driver.Connector.
Expand Down
2 changes: 1 addition & 1 deletion connextra.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package polypheny
import (
"context"

"github.com/polypheny/Polypheny-Prism-API/go/v2/prism"
"github.com/polypheny/Polypheny-Go-Driver/prism"
)

// QueryMongoContext executes an MQL query and returns all documents in its
Expand Down
2 changes: 1 addition & 1 deletion const.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package polypheny

import (
prism "github.com/polypheny/Polypheny-Prism-API/go/v2/prism"
prism "github.com/polypheny/Polypheny-Go-Driver/prism"
)

// Connection/API versions
Expand Down
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ module github.com/polypheny/Polypheny-Go-Driver

go 1.23

require (
github.com/polypheny/Polypheny-Prism-API/go/v2 v2.0.0-20261115170025-4b1e8393731c
google.golang.org/protobuf v1.36.11
)
require google.golang.org/protobuf v1.36.11
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/polypheny/Polypheny-Prism-API/go/v2 v2.0.0-20261115170025-4b1e8393731c h1:e9zEGrzstNqrGMCyG0gWhQFWxNjrBa37G7rBkHyjMjA=
github.com/polypheny/Polypheny-Prism-API/go/v2 v2.0.0-20261115170025-4b1e8393731c/go.mod h1:3l8pU9TK/UaUXUVdPX4QI1IsmeQlRWCOL6Nodor5dMc=
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=
google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
2 changes: 1 addition & 1 deletion metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package polypheny
import (
"context"

"github.com/polypheny/Polypheny-Prism-API/go/v2/prism"
"github.com/polypheny/Polypheny-Go-Driver/prism"
)

// SearchEntities returns metadata about the entities in namespace. A nil pattern
Expand Down
2 changes: 1 addition & 1 deletion preparedstatement.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync/atomic"
"time"

"github.com/polypheny/Polypheny-Prism-API/go/v2/prism"
"github.com/polypheny/Polypheny-Go-Driver/prism"
)

// PreparedStatement implements driver.Stmt and its context-aware extensions.
Expand Down
Loading
Loading