Documentation ¶
Index ¶
- Variables
- func CreateSchema(schema string, dbname string) error
- func FileExists(filename string) bool
- func LocalAres2Sqlite(rootDir string, dbname string, printProgress bool, logger *log.Logger) error
- func RepoToSqlite(repo string, dbname string, printProgress bool, logger *log.Logger) error
- func Repos2Sqlite(urls []string, dbname string, printProgress bool, logger *log.Logger) error
- func ReposToSqlite(repos []string, dbname string, printProgress bool, logger *log.Logger) error
Constants ¶
This section is empty.
Variables ¶
View Source
var InsertLtext = `INSERT INTO ltext (id, topic, key, value, nnp, nwp, comment, redirect) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`
SQL to insert Ltext into database
View Source
var SchemaLtext = `` /* 185-byte string literal not displayed */
Schema to create Ltext
Functions ¶
func CreateSchema ¶
Create a schema in the specified database
func FileExists ¶
fileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
func LocalAres2Sqlite ¶
func LocalAres2Sqlite( rootDir string, dbname string, printProgress bool, logger *log.Logger, ) error
Reads lines from ares files in local directories, then writes the lines from each file into the database.
func RepoToSqlite ¶
Loads the repo into memory from Github, then writes the lines from each file into the database.
func Repos2Sqlite ¶
Loads the repo into memory from Github, then writes the lines from each file into the database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.