Documentation
¶
Overview ¶
Package dbserver is used by integration tests to connect to databases
Index ¶
- type DbServer
- func (s DbServer) AuthToken() neo4j.AuthToken
- func (s DbServer) BoltURI() string
- func (s DbServer) ConfigFunc() func(*config.Config)
- func (s DbServer) CreateDatabaseQuery(db string) string
- func (s DbServer) Driver(configurers ...func(*config.Config)) neo4j.DriverWithContext
- func (s DbServer) DropDatabaseQuery(db string) string
- func (s DbServer) GetTransactionWorkloadsQuery() string
- func (s DbServer) URI() string
- type Version
- func (version Version) Equals(other Version) bool
- func (version Version) GreaterThan(other Version) bool
- func (version Version) GreaterThanOrEqual(other Version) bool
- func (version Version) LessThan(other Version) bool
- func (version Version) LessThanOrEqual(other Version) bool
- func (version Version) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbServer ¶
type DbServer struct { Username string Password string Scheme string Hostname string Port int IsCluster bool IsEnterprise bool Version Version }
func GetDbServer ¶
func (DbServer) AuthToken ¶
Returns the default auth token to connect to the database. This should be used when tests don't care about exactly what type of authorization scheme that is being used.
func (DbServer) ConfigFunc ¶
func (DbServer) CreateDatabaseQuery ¶
func (DbServer) Driver ¶
func (s DbServer) Driver(configurers ...func(*config.Config)) neo4j.DriverWithContext
func (DbServer) DropDatabaseQuery ¶
func (DbServer) GetTransactionWorkloadsQuery ¶
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func (Version) GreaterThan ¶
func (Version) GreaterThanOrEqual ¶
func (Version) LessThanOrEqual ¶
Click to show internal directories.
Click to hide internal directories.