Documentation
¶
Overview ¶
Package util provides common code for all the importers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseSQL ¶
ParseSQL parses a line of the SQL statement by extracting the relevant INSERT line into the target table
func SplitString ¶
SplitString splits a quoted string.
query (string): the string to split sep (rune): the separator to split on keepEmpty (bool): whether to keep empty fiedls singleQuote (bool): true to use single quote, false to use double quote
Types ¶
type GenericData ¶
type GenericData struct { Id primitive.ObjectID `json:"id" bson:"_id,omitempty"` MemberID int `bson:"memberid"` Email string `bson:"email"` Liame string `bson:"liame"` PasswordHash string `bson:"passwordhash"` Password string `bson:"password"` Username string `bson:"username"` Hint string `bson:"hint"` Breach string `bson:"breach"` IP string `bson:"ip"` Name string `bson:"name"` }
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func MakeImporter ¶
func MakeImporter(defaultFileName string, parser LineParser, numThreads int) (*Importer, error)
MakeImporter constructs and returns an importer
Click to show internal directories.
Click to hide internal directories.