Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { io.Closer Query(query string, params anytype.Object) (anytype.List, error) NewCollection(entity string) (Collection, error) }
Interface for a connection to a database.
Extends:
- io.Closer.
func NewConnection ¶
func NewConnection(address string, user string, password string) (Connection, error)
Creates a new Neo4j connection.
Parameters:
- address - address of the database (port 7687 assumed if not specified),
- user - username,
- password - password of the user.
Returns:
- pointer to the created connection,
- error if any occurred.
Click to show internal directories.
Click to hide internal directories.