Skip to content

Commit 23e0e6f

Browse files
committed
Some notes.
1 parent b61b897 commit 23e0e6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contracts.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type (
1515

1616
// Pool is a common subset of methods implemented by *sql.DB and *sql.Tx.
1717
// The name is a nod to that fact that a *sql.DB implements a Pool of connections.
18+
// TODO: perhaps un-export?
1819
Pool interface {
1920
PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
2021
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
@@ -31,6 +32,7 @@ type (
3132
}
3233

3334
// Script represents SQL statements that aren't expected to provide rows as a result.
35+
// TODO: perhaps un-export?
3436
Script interface {
3537
// Statements returns a string containing 1 or more SQL statements, separated by `;`.
3638
// This means that the ';' character should NOT be used within any of the statements.
@@ -42,6 +44,7 @@ type (
4244

4345
// Query represents a SQL statement that is expected to provide rows as a result.
4446
// Rows are fed to the Scan method.
47+
// TODO: perhaps un-export?
4548
Query interface {
4649
// Statement returns a string containing a single SQL query.
4750
Statement() string

0 commit comments

Comments
 (0)