sqlstorage

package
v0.0.0-...-caa0154 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *options)

func WithBatchCount

func WithBatchCount(batchCount int) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithSqlURL

func WithSqlURL(sqlURL string) Option

type SqlStore

type SqlStore struct {
	Table map[string]struct{}
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*SqlStore, error)

func (*SqlStore) Flush

func (s *SqlStore) Flush() error

func (*SqlStore) Save

func (s *SqlStore) Save(dataCells ...*spider.DataCell) error

Jump to

Keyboard shortcuts

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