databaseinterface

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	DeletePaste(int) error
	GetDatabaseConnection() *sql.DB
	GetPaste(pasteID int) (*structs.Paste, error)
	GetPagedPastes(page int) ([]structs.Paste, error)
	GetPastesPages() int
	Initialize()
	RegisterDialect(dialectinterface.Interface)
	SavePaste(p *structs.Paste) (int64, error)
	Shutdown()
}

Interface represents database interface which is available to all parts of application and registers with context.Context.

Source Files

  • databaseinterface.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL