Versions in this module Expand all Collapse all v0 v0.18.5 Sep 23, 2026 Changes in this version + const DefaultDelimiter + func ExecuteStream(ctx context.Context, db Execer, r io.Reader, onStatement func(count int)) (int, error) + func InteractiveShell(ctx context.Context, db Conn, format Format) error + func Run(ctx context.Context, db Conn, input string, out io.Writer, format Format) error + func RunStatement(ctx context.Context, db Conn, stmt string, out io.Writer, format Format) error + func Shell(ctx context.Context, db Conn, in io.Reader, out, errOut io.Writer, ...) error + func SplitStatements(input string) ([]string, string) + func SplitStatementsWithDelimiter(input, delimiter string) ([]string, string, string) + type Conn interface + QueryContext func(ctx context.Context, query string, args ...any) (*sql.Rows, error) + type Execer interface + ExecContext func(ctx context.Context, query string, args ...any) (sql.Result, error) + type Format string + const FormatJSON + const FormatTSV + const FormatTable + func ParseFormat(name string) (Format, error)