Skip to content

Commit 5d6617a

Browse files
committed
Naming is hard
Signed-off-by: Adam Reese <[email protected]>
1 parent cda0a19 commit 5d6617a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

v3/sqlite/sqlite.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func Open(name string) *sql.DB {
2020

2121
// conn represents a database connection.
2222
type conn struct {
23-
c sqlite.Connection
23+
spinConn sqlite.Connection
2424
}
2525

2626
// Close the connection.
@@ -64,7 +64,7 @@ func (d *connector) Open(name string) (driver.Conn, error) {
6464
return nil, toError(results.Err())
6565
}
6666
d.conn = &conn{
67-
c: *results.OK(),
67+
spinConn: *results.OK(),
6868
}
6969
return d.conn, nil
7070
}
@@ -195,7 +195,7 @@ func (s *stmt) Query(args []driver.Value) (driver.Rows, error) {
195195
for i := range args {
196196
params[i] = toWasiValue(args[i])
197197
}
198-
results := s.conn.c.Execute(s.query, cm.ToList(params))
198+
results := s.conn.spinConn.Execute(s.query, cm.ToList(params))
199199
if results.IsErr() {
200200
return nil, toError(results.Err())
201201
}
@@ -223,7 +223,7 @@ func (s *stmt) Exec(args []driver.Value) (driver.Result, error) {
223223
for i := range args {
224224
params[i] = toWasiValue(args[i])
225225
}
226-
results := s.conn.c.Execute(s.query, cm.ToList(params))
226+
results := s.conn.spinConn.Execute(s.query, cm.ToList(params))
227227
if results.IsErr() {
228228
return nil, toError(results.Err())
229229
}

0 commit comments

Comments
 (0)