This commit is contained in:
John Guo
2025-04-10 14:12:35 +08:00
parent 1534abdb05
commit 2cc4835c49
1311 changed files with 4587 additions and 4587 deletions

View File

@ -1,10 +1,10 @@
module github.com/gogf/gf/contrib/drivers/sqlite/v2
module github.com/gogf/gf/contrib/drivers/sqlite/v3
go 1.22
require (
github.com/glebarez/go-sqlite v1.21.2
github.com/gogf/gf/v2 v2.9.0
github.com/gogf/gf/v3 v3.0.0-alpha
)
require (
@ -41,4 +41,4 @@ require (
modernc.org/sqlite v1.23.1 // indirect
)
replace github.com/gogf/gf/v2 => ../../../
replace github.com/gogf/gf/v3 => ../../../

View File

@ -10,7 +10,7 @@ package sqlite
import (
_ "github.com/glebarez/go-sqlite"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v3/database/gdb"
)
// Driver is the driver for sqlite database.

View File

@ -9,8 +9,8 @@ package sqlite
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/text/gstr"
"github.com/gogf/gf/v3/database/gdb"
"github.com/gogf/gf/v3/text/gstr"
)
// DoFilter deals with the sql string before commits it to underlying sql driver.

View File

@ -9,11 +9,11 @@ package sqlite
import (
"fmt"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/text/gstr"
"github.com/gogf/gf/v2/util/gconv"
"github.com/gogf/gf/v3/database/gdb"
"github.com/gogf/gf/v3/errors/gcode"
"github.com/gogf/gf/v3/errors/gerror"
"github.com/gogf/gf/v3/text/gstr"
"github.com/gogf/gf/v3/util/gconv"
)
// FormatUpsert returns SQL clause of type upsert for SQLite.

View File

@ -10,13 +10,13 @@ import (
"database/sql"
"fmt"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/encoding/gurl"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/text/gstr"
"github.com/gogf/gf/v2/util/gconv"
"github.com/gogf/gf/v3/database/gdb"
"github.com/gogf/gf/v3/encoding/gurl"
"github.com/gogf/gf/v3/errors/gcode"
"github.com/gogf/gf/v3/errors/gerror"
"github.com/gogf/gf/v3/os/gfile"
"github.com/gogf/gf/v3/text/gstr"
"github.com/gogf/gf/v3/util/gconv"
)
// Open creates and returns an underlying sql.DB object for sqlite.

View File

@ -10,8 +10,8 @@ import (
"context"
"fmt"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/util/gutil"
"github.com/gogf/gf/v3/database/gdb"
"github.com/gogf/gf/v3/util/gutil"
)
// TableFields retrieves and returns the fields' information of specified table of current schema.

View File

@ -9,7 +9,7 @@ package sqlite
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v3/database/gdb"
)
const (

View File

@ -13,14 +13,14 @@ import (
"testing"
"time"
"github.com/gogf/gf/v2/container/garray"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/encoding/gxml"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/container/garray"
"github.com/gogf/gf/v3/database/gdb"
"github.com/gogf/gf/v3/encoding/gjson"
"github.com/gogf/gf/v3/encoding/gxml"
"github.com/gogf/gf/v3/frame/g"
"github.com/gogf/gf/v3/os/gfile"
"github.com/gogf/gf/v3/os/gtime"
"github.com/gogf/gf/v3/test/gtest"
)
func Test_New(t *testing.T) {

View File

@ -9,13 +9,13 @@ package sqlite_test
import (
"fmt"
"github.com/gogf/gf/v2/container/garray"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gctx"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/container/garray"
"github.com/gogf/gf/v3/database/gdb"
"github.com/gogf/gf/v3/frame/g"
"github.com/gogf/gf/v3/os/gctx"
"github.com/gogf/gf/v3/os/gfile"
"github.com/gogf/gf/v3/os/gtime"
"github.com/gogf/gf/v3/test/gtest"
)
var (

View File

@ -15,20 +15,20 @@ import (
"testing"
"time"
"github.com/gogf/gf/v2/container/garray"
"github.com/gogf/gf/v2/container/gmap"
"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
"github.com/gogf/gf/v2/util/guid"
"github.com/gogf/gf/v2/util/gutil"
"github.com/gogf/gf/v3/container/garray"
"github.com/gogf/gf/v3/container/gmap"
"github.com/gogf/gf/v3/container/gvar"
"github.com/gogf/gf/v3/database/gdb"
"github.com/gogf/gf/v3/encoding/gjson"
"github.com/gogf/gf/v3/errors/gcode"
"github.com/gogf/gf/v3/errors/gerror"
"github.com/gogf/gf/v3/frame/g"
"github.com/gogf/gf/v3/os/glog"
"github.com/gogf/gf/v3/os/gtime"
"github.com/gogf/gf/v3/test/gtest"
"github.com/gogf/gf/v3/text/gstr"
"github.com/gogf/gf/v3/util/guid"
"github.com/gogf/gf/v3/util/gutil"
)
func Test_Model_Insert(t *testing.T) {