mysql

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Utf8mb4     Charset  = "utf8mb4"
	UTC         Location = "UTC"
	DefaultPort          = 3306
)

Variables

View Source
var (
	DefaultTimeout = 10 * time.Second
)

Functions

func Factory

func Factory(options ...option) store.Factory

func Host

func Host(host string) option

func New

func New(options ...option) (store.URLDataStore, error)

func Password

func Password(password string) option

func Port

func Port(port int) option

func Username

func Username(username string) option

Types

type Charset

type Charset string

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (Config) DSN

func (c Config) DSN() string

func (Config) String

func (c Config) String() string

type Location

type Location string

type Store

type Store struct {
	database.DBHandle[stmtIndex]
}

func (*Store) Create

func (s *Store) Create() error

func (*Store) Fetch

func (s *Store) Fetch(*nurl.URL) (*resource.WebPage, error)

func (*Store) Save

func (s *Store) Save(*resource.WebPage) (uint64, error)

Jump to

Keyboard shortcuts

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