{"modulePath":"github.com/maginga/example/activity/sqlquery","version":"v0.0.0-20220121080038-6f9e92ac2952","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sqlquery\n\n## Functions\n\n```go\nfunc New(ctx activity.InitContext) (activity.Activity, error)\n```\n\n## Types\n\n```go\ntype Activity struct {\n\t// contains filtered or unexported fields\n}\n```\nActivity is a Counter Activity implementation\n\n```go\nfunc (a *Activity) Cleanup() error\n```\n\n```go\nfunc (a *Activity) Eval(ctx activity.Context) (done bool, err error)\n```\nEval implements activity.Activity.Eval\n\n```go\nfunc (a *Activity) Metadata() *activity.Metadata\n```\nMetadata implements activity.Activity.Metadata\n\n```go\ntype Input struct {\n\tParams map[string]interface{} `md:\"params\"`\n}\n```\n\n```go\nfunc (i *Input) FromMap(values map[string]interface{}) error\n```\nFromMap converts the values from a map into the struct Input\n\n```go\nfunc (i *Input) ToMap() map[string]interface{}\n```\nToMap converts the struct Input into a map\n\n```go\ntype Output struct {\n\t// ColumnNames []interface{} `md:\"columnNames\"`\n\tResult interface{} `md:\"result\"`\n}\n```\n\n```go\nfunc (o *Output) FromMap(values map[string]interface{}) error\n```\n\n```go\nfunc (o *Output) ToMap() map[string]interface{}\n```\n\n```go\ntype Settings struct {\n\tDbType          string `md:\"dbType,allowed(mysql,oracle,postgres,sqlite,sqlserver), required\"`\n\tDriverName      string `md:\"driverName,required\"`\n\tDataSourceName  string `md:\"dataSourceName,required\"`\n\tQuery           string `md:\"query,required\"`\n\tMaxOpenConns    int    `md:\"maxOpenConnections\"`\n\tMaxIdleConns    int    `md:\"maxIdleConnections\"`\n\tDisablePrepared bool   `md:\"disablePrepared\"`\n\tTimeZone        string `md:\"timeZone\"`\n\tStartOffset     string `md:\"startOffset,required\"`\n\tBatchSize       string `md:\"batchSize,required\"`\n}\n```\n\n","path":"github.com/maginga/example/activity/sqlquery","name":"sqlquery","synopsis":"","isRedistributable":true}
