From 29742e0bd7118e1021494bf01572ebcb6f22da7a Mon Sep 17 00:00:00 2001 From: Anton Tolchanov Date: Tue, 3 Feb 2026 18:04:46 +0000 Subject: [PATCH] go.mod: rename to github.com/tailscale/sqlite-exp Updates tailscale/corp#36170 Signed-off-by: Anton Tolchanov --- cgosqlite/cgosqlite.go | 2 +- cgosqlite/cgosqlite_test.go | 2 +- cgosqlite/logcallback.go | 2 +- go.mod | 2 +- sqlite.go | 4 ++-- sqlite_cgo.go | 2 +- sqlite_cgo_test.go | 4 ++-- sqlite_test.go | 4 ++-- sqlitepool/queryglue.go | 2 +- sqlitepool/queryglue_test.go | 4 ++-- sqlitepool/sqlitepool.go | 4 ++-- sqlitepool/sqlitepool_test.go | 4 ++-- sqlitepool/util.go | 2 +- sqlstats/sqlstats.go | 4 ++-- sqlstats/sqlstats_test.go | 2 +- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/cgosqlite/cgosqlite.go b/cgosqlite/cgosqlite.go index bfcc095..1172299 100644 --- a/cgosqlite/cgosqlite.go +++ b/cgosqlite/cgosqlite.go @@ -55,7 +55,7 @@ import ( "time" "unsafe" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/sqliteh" ) // emptyChar is the empty string constant used when binding empty strings to diff --git a/cgosqlite/cgosqlite_test.go b/cgosqlite/cgosqlite_test.go index 1048ceb..19860c6 100644 --- a/cgosqlite/cgosqlite_test.go +++ b/cgosqlite/cgosqlite_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/sqliteh" ) func TestBindParameterIndexSearch(t *testing.T) { diff --git a/cgosqlite/logcallback.go b/cgosqlite/logcallback.go index 1eb394a..9887b1c 100644 --- a/cgosqlite/logcallback.go +++ b/cgosqlite/logcallback.go @@ -20,7 +20,7 @@ import ( "sync" "unsafe" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/sqliteh" ) // LogCallback receives SQLite log messages. diff --git a/go.mod b/go.mod index f3ecd7d..1b19996 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/tailscale/sqlite +module github.com/tailscale/sqlite-exp go 1.21 diff --git a/sqlite.go b/sqlite.go index 126e9c8..86b3a4d 100644 --- a/sqlite.go +++ b/sqlite.go @@ -80,7 +80,7 @@ import ( "sync/atomic" "time" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/sqliteh" ) 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 const LevelSerializable = 6 // matches the sql package constant if opts.Isolation != 0 && opts.Isolation != LevelSerializable { - return nil, errors.New("github.com/tailscale/sqlite driver only supports serializable isolation level") + return nil, errors.New("github.com/tailscale/sqlite-exp driver only supports serializable isolation level") } c.readOnly = opts.ReadOnly c.txState = txStateInit diff --git a/sqlite_cgo.go b/sqlite_cgo.go index b4e903d..5247dc3 100644 --- a/sqlite_cgo.go +++ b/sqlite_cgo.go @@ -3,7 +3,7 @@ package sqlite import ( - "github.com/tailscale/sqlite/cgosqlite" + "github.com/tailscale/sqlite-exp/cgosqlite" ) func init() { diff --git a/sqlite_cgo_test.go b/sqlite_cgo_test.go index bb6651e..f6bbef5 100644 --- a/sqlite_cgo_test.go +++ b/sqlite_cgo_test.go @@ -6,8 +6,8 @@ import ( "sync" "testing" - "github.com/tailscale/sqlite/cgosqlite" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/cgosqlite" + "github.com/tailscale/sqlite-exp/sqliteh" ) // ensure LogCallback is convertible to cgosqlite.LogCallback diff --git a/sqlite_test.go b/sqlite_test.go index de6fab9..464e8d3 100644 --- a/sqlite_test.go +++ b/sqlite_test.go @@ -20,7 +20,7 @@ import ( "testing" "time" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/sqliteh" ) func TestOpenDB(t *testing.T) { @@ -1298,7 +1298,7 @@ func BenchmarkBeginTxNoop(b *testing.B) { // This tests that we don't give the same *stmt to two different callers that // prepare the same persistent query. See: // -// https://github.com/tailscale/sqlite/issues/73 +// https://github.com/tailscale/sqlite-exp/issues/73 func TestPrepareReuse(t *testing.T) { db := openTestDB(t) ctx := context.Background() diff --git a/sqlitepool/queryglue.go b/sqlitepool/queryglue.go index 4a84e80..2d54288 100644 --- a/sqlitepool/queryglue.go +++ b/sqlitepool/queryglue.go @@ -18,7 +18,7 @@ import ( "strings" "time" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/sqliteh" ) // Exec is like database/sql.Tx.Exec. diff --git a/sqlitepool/queryglue_test.go b/sqlitepool/queryglue_test.go index e29f798..c1191b8 100644 --- a/sqlitepool/queryglue_test.go +++ b/sqlitepool/queryglue_test.go @@ -7,8 +7,8 @@ import ( "database/sql" "testing" - "github.com/tailscale/sqlite/sqliteh" - "github.com/tailscale/sqlite/sqlstats" + "github.com/tailscale/sqlite-exp/sqliteh" + "github.com/tailscale/sqlite-exp/sqlstats" ) func TestQueryGlue(t *testing.T) { diff --git a/sqlitepool/sqlitepool.go b/sqlitepool/sqlitepool.go index d699be6..723d14d 100644 --- a/sqlitepool/sqlitepool.go +++ b/sqlitepool/sqlitepool.go @@ -9,8 +9,8 @@ import ( "fmt" "strings" - "github.com/tailscale/sqlite/cgosqlite" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/cgosqlite" + "github.com/tailscale/sqlite-exp/sqliteh" ) // A Pool is a fixed-size pool of SQLite database connections. diff --git a/sqlitepool/sqlitepool_test.go b/sqlitepool/sqlitepool_test.go index f476d66..fb59ae0 100644 --- a/sqlitepool/sqlitepool_test.go +++ b/sqlitepool/sqlitepool_test.go @@ -7,8 +7,8 @@ import ( "errors" "testing" - "github.com/tailscale/sqlite/sqliteh" - "github.com/tailscale/sqlite/sqlstats" + "github.com/tailscale/sqlite-exp/sqliteh" + "github.com/tailscale/sqlite-exp/sqlstats" ) func TestPool(t *testing.T) { diff --git a/sqlitepool/util.go b/sqlitepool/util.go index d17c370..5d60495 100644 --- a/sqlitepool/util.go +++ b/sqlitepool/util.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/sqliteh" ) // CopyAll copies the contents of one database to another. diff --git a/sqlstats/sqlstats.go b/sqlstats/sqlstats.go index 1f5b7ff..c133513 100644 --- a/sqlstats/sqlstats.go +++ b/sqlstats/sqlstats.go @@ -15,7 +15,7 @@ import ( "sync/atomic" "time" - "github.com/tailscale/sqlite/sqliteh" + "github.com/tailscale/sqlite-exp/sqliteh" ) // Tracer implements sqlite.Tracer and collects query stats. @@ -355,7 +355,7 @@ func (t *Tracer) Handle(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") w.WriteHeader(200) fmt.Fprintf(w, ` -

Trace of SQLite queries run via the github.com/tailscale/sqlite driver.

+

Trace of SQLite queries run via the github.com/tailscale/sqlite-exp driver.

diff --git a/sqlstats/sqlstats_test.go b/sqlstats/sqlstats_test.go index 36b9f02..3557a01 100644 --- a/sqlstats/sqlstats_test.go +++ b/sqlstats/sqlstats_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/tailscale/sqlite" + "github.com/tailscale/sqlite-exp" ) func TestActiveTxs(t *testing.T) {
Query