package
0.1.0
Repository: https://github.com/lukasdietrich/briefmail.git
Documentation: pkg.go.dev

# Functions

IsErrNoRows checks if an error is caused by an empty sql result set.
IsErrUnique checks if an error is caused by a unique constraint.
NewAddressDao creates a new AddressDao.
NewDomainDao creates a new DomainDao.
NewMailboxCredentialDao creates a new MailboxCredentialDao.
NewMailboxDao creates a new MailboxDao.
NewMailDao creates a new MailDao.
NewRecipientDao creates a new RecipientDao.
OpenConnection opens an sqlite3 database connection using the configuration from viper.

# Structs

AddressWithDomain is a helper type to eagerly fetch the domain name of an address.

# Interfaces

AddressDao is a data access object for all address related queries.
Conn is a connection to the sql database.
DomainDao is a data access object for all domain related queries.
MailboxCredentialDao is a data access object for all mailbox-credential related queries.
MailboxDao is a data access object for all mailbox related queries.
MailDao is a data access object for all mail related queries.
Queryer is an interface for both transactions and the database connection itself.
RecipientDao is a data access object for all recipient related queries.
Tx is a database transaction, which can be rolled back or committed.