File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 15
15
16
16
// Pool is a common subset of methods implemented by *sql.DB and *sql.Tx.
17
17
// The name is a nod to that fact that a *sql.DB implements a Pool of connections.
18
+ // TODO: perhaps un-export?
18
19
Pool interface {
19
20
PrepareContext (ctx context.Context , query string ) (* sql.Stmt , error )
20
21
ExecContext (ctx context.Context , query string , args ... any ) (sql.Result , error )
31
32
}
32
33
33
34
// Script represents SQL statements that aren't expected to provide rows as a result.
35
+ // TODO: perhaps un-export?
34
36
Script interface {
35
37
// Statements returns a string containing 1 or more SQL statements, separated by `;`.
36
38
// This means that the ';' character should NOT be used within any of the statements.
42
44
43
45
// Query represents a SQL statement that is expected to provide rows as a result.
44
46
// Rows are fed to the Scan method.
47
+ // TODO: perhaps un-export?
45
48
Query interface {
46
49
// Statement returns a string containing a single SQL query.
47
50
Statement () string
You can’t perform that action at this time.
0 commit comments