Skip to content

Commit aee487b

Browse files
committed
Rename package, update README to clarify its experimental status.
1 parent 6cfe794 commit aee487b

15 files changed

Lines changed: 25 additions & 32 deletions

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
# SQLite driver for Go `database/sql`
1+
# SQLite Interface for Go
22

3-
Work in progress. Nothing to see here.
3+
This project is an experimental fork of https://github.com/agentio/sqlite.
44

5-
## Updating SQLite
6-
7-
The script `update-sqlite.sh` at the top of the repository partially automates
8-
this process. It expects a SQLite amalgamation URL as the first argument:
9-
10-
```
11-
./update-sqlite.sh https://sqlite.org/2024/sqlite-amalgamation-3460100.zip
12-
```
5+
Please use that package instead of this one.

cgosqlite/cgosqlite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import (
5454
"time"
5555
"unsafe"
5656

57-
"github.com/tailscale/sqlite/sqliteh"
57+
"github.com/agentio/sqlite/sqliteh"
5858
)
5959

6060
func init() {

cgosqlite/logcallback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"sync"
2121
"unsafe"
2222

23-
"github.com/tailscale/sqlite/sqliteh"
23+
"github.com/agentio/sqlite/sqliteh"
2424
)
2525

2626
// LogCallback receives SQLite log messages.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/tailscale/sqlite
1+
module github.com/agentio/sqlite
22

33
go 1.21

sqlite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ import (
8080
"sync/atomic"
8181
"time"
8282

83-
"github.com/tailscale/sqlite/sqliteh"
83+
"github.com/agentio/sqlite/sqliteh"
8484
)
8585

8686
var Open sqliteh.OpenFunc = func(string, sqliteh.OpenFlags, string) (sqliteh.DB, error) {
@@ -326,7 +326,7 @@ func (c *conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, e
326326

327327
const LevelSerializable = 6 // matches the sql package constant
328328
if opts.Isolation != 0 && opts.Isolation != LevelSerializable {
329-
return nil, errors.New("github.com/tailscale/sqlite driver only supports serializable isolation level")
329+
return nil, errors.New("github.com/agentio/sqlite driver only supports serializable isolation level")
330330
}
331331
c.readOnly = opts.ReadOnly
332332
c.txState = txStateInit

sqlite_cgo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
package sqlite
55

66
import (
7-
"github.com/tailscale/sqlite/cgosqlite"
8-
"github.com/tailscale/sqlite/sqliteh"
7+
"github.com/agentio/sqlite/cgosqlite"
8+
"github.com/agentio/sqlite/sqliteh"
99
)
1010

1111
func init() {

sqlite_cgo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"sync"
88
"testing"
99

10-
"github.com/tailscale/sqlite/cgosqlite"
11-
"github.com/tailscale/sqlite/sqliteh"
10+
"github.com/agentio/sqlite/cgosqlite"
11+
"github.com/agentio/sqlite/sqliteh"
1212
)
1313

1414
// ensure LogCallback is convertible to cgosqlite.LogCallback

sqlite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"testing"
2121
"time"
2222

23-
"github.com/tailscale/sqlite/sqliteh"
23+
"github.com/agentio/sqlite/sqliteh"
2424
)
2525

2626
func TestOpenDB(t *testing.T) {
@@ -1241,7 +1241,7 @@ func BenchmarkBeginTxNoop(b *testing.B) {
12411241
// This tests that we don't give the same *stmt to two different callers that
12421242
// prepare the same persistent query. See:
12431243
//
1244-
// https://github.com/tailscale/sqlite/issues/73
1244+
// https://github.com/agentio/sqlite/issues/73
12451245
func TestPrepareReuse(t *testing.T) {
12461246
db := openTestDB(t)
12471247
ctx := context.Background()

sqlitepool/queryglue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"strings"
1717
"time"
1818

19-
"github.com/tailscale/sqlite/sqliteh"
19+
"github.com/agentio/sqlite/sqliteh"
2020
)
2121

2222
// Exec is like database/sql.Tx.Exec.

sqlitepool/queryglue_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"database/sql"
66
"testing"
77

8-
"github.com/tailscale/sqlite/sqliteh"
9-
"github.com/tailscale/sqlite/sqlstats"
8+
"github.com/agentio/sqlite/sqliteh"
9+
"github.com/agentio/sqlite/sqlstats"
1010
)
1111

1212
func TestQueryGlue(t *testing.T) {

0 commit comments

Comments
 (0)