package
0.8.5
Repository: https://github.com/wealdtech/chaind.git
Documentation: pkg.go.dev

# Functions

New creates a new service.
WithCACert sets the bytes of the certificate authority TLS certificate.
WithClientCert sets the bytes of the client TLS certificate.
WithClientKey sets the bytes of the client TLS key.
WithConnectionURL sets the connection URL for this module.
WithLogLevel sets the log level for the module.
WithMaxConnections sets the maximum number of connections for the database pool.
WithPartitioned is true if the database uses partitioned tables.
WithPassword sets the password for this module.
WithPort sets the port for this module.
WithServer sets the server for this module.
WithUser sets the user for this module.

# Variables

ErrNoTransaction is returned when an attempt to carry out a mutation to the database is not inside a transaction.

# Structs

Service is a chain database service.
Tx is a context tag for the database transaction.
TxID is a context tag for the transaction TxID.

# Interfaces

Parameter is the interface for service parameters.