sqlstorage

package
v0.0.0-...-278ce41 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 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 SQLStorage

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

func New

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

func (*SQLStorage) Flush

func (s *SQLStorage) Flush() error

func (*SQLStorage) Save

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

Jump to

Keyboard shortcuts

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