Documentation ¶
Index ¶
- type DBQuerier
- func (q *DBQuerier) Backtick(ctx context.Context) (string, error)
- func (q *DBQuerier) BacktickBackslashN(ctx context.Context) (string, error)
- func (q *DBQuerier) BacktickDoubleQuote(ctx context.Context) (string, error)
- func (q *DBQuerier) BacktickNewline(ctx context.Context) (string, error)
- func (q *DBQuerier) BacktickQuoteBacktick(ctx context.Context) (string, error)
- func (q *DBQuerier) BadEnumName(ctx context.Context) (UnnamedEnum123, error)
- func (q *DBQuerier) GoKeyword(ctx context.Context, go_ string) (string, error)
- func (q *DBQuerier) IllegalNameSymbols(ctx context.Context, helloWorld string) (IllegalNameSymbolsRow, error)
- func (q *DBQuerier) SpaceAfter(ctx context.Context, space string) (string, error)
- type IllegalNameSymbolsRow
- type Querier
- type QueryName
- type UnnamedEnum123
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBQuerier ¶
type DBQuerier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶
func NewQuerier(conn genericConn) *DBQuerier
NewQuerier creates a DBQuerier that implements Querier.
func (*DBQuerier) BacktickBackslashN ¶
BacktickBackslashN implements Querier.BacktickBackslashN.
func (*DBQuerier) BacktickDoubleQuote ¶
BacktickDoubleQuote implements Querier.BacktickDoubleQuote.
func (*DBQuerier) BacktickNewline ¶
BacktickNewline implements Querier.BacktickNewline.
func (*DBQuerier) BacktickQuoteBacktick ¶
BacktickQuoteBacktick implements Querier.BacktickQuoteBacktick.
func (*DBQuerier) BadEnumName ¶
func (q *DBQuerier) BadEnumName(ctx context.Context) (UnnamedEnum123, error)
BadEnumName implements Querier.BadEnumName.
func (*DBQuerier) IllegalNameSymbols ¶
func (q *DBQuerier) IllegalNameSymbols(ctx context.Context, helloWorld string) (IllegalNameSymbolsRow, error)
IllegalNameSymbols implements Querier.IllegalNameSymbols.
type IllegalNameSymbolsRow ¶
type Querier ¶
type Querier interface { // Query to test escaping in generated Go. Backtick(ctx context.Context) (string, error) // Query to test escaping in generated Go. BacktickQuoteBacktick(ctx context.Context) (string, error) // Query to test escaping in generated Go. BacktickNewline(ctx context.Context) (string, error) // Query to test escaping in generated Go. BacktickDoubleQuote(ctx context.Context) (string, error) // Query to test escaping in generated Go. BacktickBackslashN(ctx context.Context) (string, error) // Illegal names. IllegalNameSymbols(ctx context.Context, helloWorld string) (IllegalNameSymbolsRow, error) // Space after pggen.arg SpaceAfter(ctx context.Context, space string) (string, error) // Enum named 123. BadEnumName(ctx context.Context) (UnnamedEnum123, error) GoKeyword(ctx context.Context, go_ string) (string, error) }
Querier is a typesafe Go interface backed by SQL queries.
type UnnamedEnum123 ¶
type UnnamedEnum123 string
UnnamedEnum123 represents the Postgres enum "123".
const ( UnnamedEnum123InconvertibleEnumName UnnamedEnum123 = "inconvertible_enum_name" UnnamedEnum123UnnamedLabel1 UnnamedEnum123 = "" UnnamedEnum123UnnamedLabel2111 UnnamedEnum123 = "111" UnnamedEnum123UnnamedLabel3 UnnamedEnum123 = "!!" )
func (UnnamedEnum123) String ¶
func (u UnnamedEnum123) String() string
Click to show internal directories.
Click to hide internal directories.