Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cgosqlite/cgosqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cgosqlite/cgosqlite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/tailscale/sqlite/sqliteh"
"github.com/tailscale/sqlite-exp/sqliteh"
)

func TestBindParameterIndexSearch(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cgosqlite/logcallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"sync"
"unsafe"

"github.com/tailscale/sqlite/sqliteh"
"github.com/tailscale/sqlite-exp/sqliteh"
)

// LogCallback receives SQLite log messages.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/tailscale/sqlite
module github.com/tailscale/sqlite-exp

go 1.21
4 changes: 2 additions & 2 deletions sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sqlite_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package sqlite

import (
"github.com/tailscale/sqlite/cgosqlite"
"github.com/tailscale/sqlite-exp/cgosqlite"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions sqlite_cgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sqlite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"time"

"github.com/tailscale/sqlite/sqliteh"
"github.com/tailscale/sqlite-exp/sqliteh"
)

func TestOpenDB(t *testing.T) {
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion sqlitepool/queryglue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions sqlitepool/queryglue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions sqlitepool/sqlitepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions sqlitepool/sqlitepool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion sqlitepool/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions sqlstats/sqlstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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, `<!DOCTYPE html><html><body>
<p>Trace of SQLite queries run via the github.com/tailscale/sqlite driver.</p>
<p>Trace of SQLite queries run via the github.com/tailscale/sqlite-exp driver.</p>
<table border="1">
<tr>
<th><a href="?sort=query">Query</a></th>
Expand Down
2 changes: 1 addition & 1 deletion sqlstats/sqlstats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

"github.com/tailscale/sqlite"
"github.com/tailscale/sqlite-exp"
)

func TestActiveTxs(t *testing.T) {
Expand Down
Loading