sqlite

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DriverNameSQLite = "sqlite3"

Variables

This section is empty.

Functions

func ExecWALCheckpoint added in v0.8.5

func ExecWALCheckpoint(driverName string, dbWriter *sql.DB) error

ExecWALCheckpoint will initiate checkpoint in the WAL journal

Types

type SQLiteDB

type SQLiteDB struct {
	URLModel  *urlDB
	PageModel *pageDB
}

func NewSQLiteDB

func NewSQLiteDB(dbReader *sql.DB, dbWriter *sql.DB) *SQLiteDB

NewSQLiteDB returns new instance of SQLiteDB with URL and Pages models

func (SQLiteDB) InitDatabase added in v0.8.5

func (sq SQLiteDB) InitDatabase(ctx context.Context, db *sql.DB) error

InitDatabase will create the required tables for the crawlers to use

Jump to

Keyboard shortcuts

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