Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEngineNotSpecified causes if no engine option was used // with the factory method. ErrEngineNotSpecified = errors.New("specify database engine with the factory method option") )
Functions ¶
func JSONParser ¶
func JSONParser(p *Polluter)
JSONParser option enambles JSON parsing engine for seeding.
func YAMLParser ¶
func YAMLParser(p *Polluter)
YAMLParser option enambles YAML parsing engine for seeding.
Types ¶
type Option ¶
type Option func(*Polluter)
Option defines options for Polluter.
func MySQLEngine ¶
MySQLEngine option enables MySQL engine for poluter.
func PostgresEngine ¶
PostgresEngine option enables Postgres engine for Polluter.
func RedisEngine ¶
RedisEngine option enables Redis engine for Polluter.
type Polluter ¶
type Polluter struct {
// contains filtered or unexported fields
}
Polluter pollutes database with given input.
Click to show internal directories.
Click to hide internal directories.