Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(_ context.Context, req *plugin.GenerateRequest) (*plugin.GenerateResponse, error)
Types ¶
type Backend ¶
type Backend string
const (
PGZigBackend Backend = "pg.zig"
)
func (Backend) ImportName ¶
type Config ¶
type Config struct {
Backend Backend `json:"backend"`
EmitExactTableNames bool `json:"emit_exact_table_names"`
InflectionExcludeTableNames []string `json:"inflection_exclude_table_names"`
QueryParameterLimit int `json:"query_parameter_limit"`
PublicQueryStings bool `json:"public_query_strings"`
UnmanagedAllocations bool `json:"unmanaged_allocations"`
UseContext bool `json:"use_context"`
PGErrorUnions bool `json:"pg_error_unions"`
}
type Identifier ¶
type Query ¶
type Query struct {
Cmd string
Comments []string
MethodName string
FieldName string
ConstantName string
SQL string
SourceName string
Ret *QueryValue
Args []QueryValue
}
func (*Query) RequiresAllocations ¶ added in v0.0.7
Source Files
¶
Click to show internal directories.
Click to hide internal directories.