Documentation ¶
Index ¶
- func NewBuilder(options ...Option) db.ClientInterface
- func RunMigrations(ctx context.Context, tx utils.QueryWrapper, ...) error
- func ScanMailbox(scanner utils.RowScanner) (*db.Mailbox, error)
- func ScanMailboxWithAttr(scanner utils.RowScanner) (*db.MailboxWithAttr, error)
- func ScanMessage(scanner utils.RowScanner) (*db.Message, error)
- func ScanMessageWithFlags(scanner utils.RowScanner) (*db.MessageWithFlags, error)
- func TestUpdateDBVersion(ctx context.Context, dbPath, userID string, version int) error
- type Builder
- type Client
- func (c *Client) Close() error
- func (c *Client) Init(ctx context.Context, generator imap.UIDValidityGenerator) error
- func (c *Client) Read(ctx context.Context, op func(context.Context, db.ReadOnly) error) error
- func (c *Client) Write(ctx context.Context, op func(context.Context, db.Transaction) error) error
- type Migration
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder(options ...Option) db.ClientInterface
func RunMigrations ¶
func RunMigrations(ctx context.Context, tx utils.QueryWrapper, generator imap.UIDValidityGenerator) error
func ScanMailbox ¶
func ScanMailbox(scanner utils.RowScanner) (*db.Mailbox, error)
func ScanMailboxWithAttr ¶
func ScanMailboxWithAttr(scanner utils.RowScanner) (*db.MailboxWithAttr, error)
func ScanMessage ¶
func ScanMessage(scanner utils.RowScanner) (*db.Message, error)
func ScanMessageWithFlags ¶
func ScanMessageWithFlags(scanner utils.RowScanner) (*db.MessageWithFlags, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Migration ¶
type Migration interface {
Run(ctx context.Context, tx utils.QueryWrapper, generator imap.UIDValidityGenerator) error
}
Click to show internal directories.
Click to hide internal directories.