You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
433 B
16 lines
433 B
// Package resultiter defines interfaces for iterating over database query results. |
|
package resultiter |
|
|
|
import ( |
|
"context" |
|
|
|
"github.com/neo4j/neo4j-go-driver/v5/neo4j" |
|
) |
|
|
|
// Neo4jResultIterator defines the interface for iterating over Neo4j query results. |
|
// This is implemented by both neo4j.Result and CollectedResult types. |
|
type Neo4jResultIterator interface { |
|
Next(context.Context) bool |
|
Record() *neo4j.Record |
|
Err() error |
|
}
|
|
|