We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e155ba commit fac6848Copy full SHA for fac6848
base.go
@@ -0,0 +1,29 @@
1
+package sqldb
2
+
3
+// BaseScript is a bare-minimum implementation of Script.
4
+type BaseScript struct {
5
+ Text string
6
+ Args []any
7
+}
8
9
+func (this BaseScript) Statements() string {
10
+ return this.Text
11
12
+func (this BaseScript) Parameters() []any {
13
+ return this.Args
14
15
16
+// BaseQuery is a bare-minium, partial implementation of Query.
17
+// Users are invited to embed it on types that define a Scan method,
18
+// thus completing the Query implementation.
19
+type BaseQuery struct {
20
21
22
23
24
+func (this BaseQuery) Statement() string {
25
26
27
+func (this BaseQuery) Parameters() []any {
28
29
0 commit comments