Documentation ¶
Overview ¶
Package client implements a client for the PostgreSQL through HTTP wpsql server.
Index ¶
- type Client
- func (m Client) Exec(ctx context.Context, qry string, params ...string) error
- func (m Client) Query(ctx context.Context, qry string, params ...string) ([][]interface{}, error)
- func (m Client) QueryStrings(ctx context.Context, qry string, params ...string) ([][]string, error)
- func (m Client) QueryStringsWalk(ctx context.Context, callback func([]string) error, qry string, ...) error
- func (m Client) QueryWalk(ctx context.Context, callback func([]interface{}) error, qry string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a wpsql client. URL must be the URL of the wpsql server. DB is the target database. Secretus needed for data modification only.
func (Client) QueryStrings ¶ added in v0.4.0
QueryStrings returns the query's results as []string the database.
Click to show internal directories.
Click to hide internal directories.