Documentation ¶
Index ¶
- func InitDB(dst string) (*sql.DB, error)
- func InsertArchives(db *sql.DB, archives []*Archive) error
- func InsertStream(db *sql.DB, archiveID, byteBegin, byteEnd int64, pageIDs []int64, ...) error
- func MarkArchiveProcessed(db *sql.DB, id int64) error
- func SearchPageName(db *sql.DB, name string) ([]int64, error)
- func SelectPage(db *sql.DB, pageID int64) (int64, error)
- func SelectPages(db *sql.DB, pageIDs []int64) ([]int64, error)
- type Archive
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertStream ¶
Types ¶
type Stream ¶
Bz2 files are split into streams. Each stream contains 100 articles. A stream is the smallest block we can extract.
func SelectArchiveStreams ¶
Click to show internal directories.
Click to hide internal directories.