[ref] mod paths
This commit is contained in:
parent
d58e5631c4
commit
37a82c835b
|
@ -4,8 +4,9 @@ import "C"
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"pkg/facade"
|
||||||
|
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"github.com/nesterow/dal/pkg/facade"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//export InitSQLite
|
//export InitSQLite
|
||||||
|
|
|
@ -2,35 +2,35 @@ module binding
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../pkg/filters
|
replace pkg/filters v0.0.0 => ../pkg/filters
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/builder v0.0.0 => ../pkg/builder
|
replace pkg/builder v0.0.0 => ../pkg/builder
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/handler v0.0.0 => ../pkg/handler
|
replace pkg/handler v0.0.0 => ../pkg/handler
|
||||||
|
|
||||||
require github.com/nesterow/dal/pkg/adapter v0.0.0 // indirect
|
require pkg/adapter v0.0.0 // indirect
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../pkg/adapter
|
replace pkg/adapter v0.0.0 => ../pkg/adapter
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../pkg/utils
|
replace pkg/utils v0.0.0 => ../pkg/utils
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/proto v0.0.0 => ../pkg/proto
|
replace pkg/proto v0.0.0 => ../pkg/proto
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/mattn/go-sqlite3 v1.14.22
|
github.com/mattn/go-sqlite3 v1.14.22
|
||||||
github.com/nesterow/dal/pkg/facade v0.0.0
|
pkg/facade v0.0.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require github.com/nesterow/dal/pkg/handler v0.0.0 // indirect
|
require pkg/handler v0.0.0 // indirect
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/facade v0.0.0 => ../pkg/facade
|
replace pkg/facade v0.0.0 => ../pkg/facade
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/tinylib/msgp v1.2.0 // indirect
|
github.com/tinylib/msgp v1.2.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
|
pkg/builder v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
|
pkg/filters v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/proto v0.0.0 // indirect
|
pkg/proto v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
|
pkg/utils v0.0.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,29 +2,29 @@ module srv
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../../../pkg/filters
|
replace pkg/filters v0.0.0 => ../../../pkg/filters
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/builder v0.0.0 => ../../../pkg/builder
|
replace pkg/builder v0.0.0 => ../../../pkg/builder
|
||||||
|
|
||||||
require github.com/nesterow/dal/pkg/adapter v0.0.0
|
require pkg/adapter v0.0.0
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../../../pkg/adapter
|
replace pkg/adapter v0.0.0 => ../../../pkg/adapter
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../../../pkg/utils
|
replace pkg/utils v0.0.0 => ../../../pkg/utils
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/proto v0.0.0 => ../../../pkg/proto
|
replace pkg/proto v0.0.0 => ../../../pkg/proto
|
||||||
|
|
||||||
require github.com/nesterow/dal/pkg/handler v0.0.0
|
require pkg/handler v0.0.0
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/handler v0.0.0 => ../../../pkg/handler
|
replace pkg/handler v0.0.0 => ../../../pkg/handler
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/mattn/go-sqlite3 v1.14.22
|
github.com/mattn/go-sqlite3 v1.14.22
|
||||||
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/tinylib/msgp v1.2.0 // indirect
|
github.com/tinylib/msgp v1.2.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
|
pkg/builder v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
|
pkg/filters v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/proto v0.0.0 // indirect
|
pkg/proto v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
|
pkg/utils v0.0.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,9 +7,10 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
|
"pkg/adapter"
|
||||||
|
"pkg/handler"
|
||||||
|
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
|
||||||
"github.com/nesterow/dal/pkg/handler"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func mock(adapter adapter.DBAdapter) {
|
func mock(adapter adapter.DBAdapter) {
|
||||||
|
|
26
go.mod
26
go.mod
|
@ -2,30 +2,30 @@ module github.com/nesterow/dal
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter => ./pkg/adapter
|
replace pkg/adapter => ./pkg/adapter
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/builder => ./pkg/builder
|
replace pkg/builder => ./pkg/builder
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/filters => ./pkg/filters
|
replace pkg/filters => ./pkg/filters
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils => ./pkg/utils
|
replace pkg/utils => ./pkg/utils
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/handler => ./pkg/handler
|
replace pkg/handler => ./pkg/handler
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/proto => ./pkg/proto
|
replace pkg/proto => ./pkg/proto
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/mattn/go-sqlite3 v1.14.22
|
github.com/mattn/go-sqlite3 v1.14.22
|
||||||
github.com/nesterow/dal/pkg/facade v0.0.0-20240820142147-ae6799ca8e35
|
github.com/nesterow/dal/pkg/facade v0.0.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/adapter v0.0.0 // indirect
|
pkg/adapter v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
|
pkg/builder v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
|
pkg/filters v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/handler v0.0.0-00010101000000-000000000000 // indirect
|
pkg/handler v0.0.0-00010101000000-000000000000 // indirect
|
||||||
github.com/nesterow/dal/pkg/proto v0.0.0 // indirect
|
pkg/proto v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
|
pkg/utils v0.0.0 // indirect
|
||||||
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/tinylib/msgp v1.2.0 // indirect
|
github.com/tinylib/msgp v1.2.0 // indirect
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -1,7 +1,7 @@
|
||||||
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
|
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
|
||||||
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
|
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
|
||||||
github.com/nesterow/dal/pkg/facade v0.0.0-20240820142147-ae6799ca8e35 h1:r/itSeN7w1MChNw9uirGtvI7jM2OITrbyBmLjpRqIqs=
|
pkg/facade v0.0.0-20240820142147-ae6799ca8e35 h1:r/itSeN7w1MChNw9uirGtvI7jM2OITrbyBmLjpRqIqs=
|
||||||
github.com/nesterow/dal/pkg/facade v0.0.0-20240820142147-ae6799ca8e35/go.mod h1:pYqz2/d8sIHYVcmjgFlUpNivwBCCypCSCUBamjI7Y3A=
|
pkg/facade v0.0.0-20240820142147-ae6799ca8e35/go.mod h1:pYqz2/d8sIHYVcmjgFlUpNivwBCCypCSCUBamjI7Y3A=
|
||||||
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 h1:jYi87L8j62qkXzaYHAQAhEapgukhenIMZRBKTNRLHJ4=
|
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 h1:jYi87L8j62qkXzaYHAQAhEapgukhenIMZRBKTNRLHJ4=
|
||||||
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM=
|
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM=
|
||||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||||
|
|
3
main.go
3
main.go
|
@ -1,8 +1,9 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/mattn/go-sqlite3"
|
|
||||||
"github.com/nesterow/dal/pkg/facade"
|
"github.com/nesterow/dal/pkg/facade"
|
||||||
|
|
||||||
|
_ "github.com/mattn/go-sqlite3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -4,8 +4,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"pkg/adapter"
|
||||||
|
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAdapterBasic(t *testing.T) {
|
func TestAdapterBasic(t *testing.T) {
|
||||||
|
|
|
@ -4,9 +4,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"pkg/adapter"
|
||||||
|
"pkg/builder"
|
||||||
|
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
|
||||||
"github.com/nesterow/dal/pkg/builder"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBuilderBasic(t *testing.T) {
|
func TestBuilderBasic(t *testing.T) {
|
||||||
|
|
|
@ -1,31 +1,31 @@
|
||||||
module github.com/nesterow/dal/pkg/tests
|
module pkg/tests
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
require github.com/nesterow/dal/pkg/builder v0.0.0
|
require pkg/builder v0.0.0
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/builder v0.0.0 => ../builder
|
replace pkg/builder v0.0.0 => ../builder
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../utils
|
replace pkg/utils v0.0.0 => ../utils
|
||||||
|
|
||||||
require github.com/nesterow/dal/pkg/adapter v0.0.0
|
require pkg/adapter v0.0.0
|
||||||
|
|
||||||
require github.com/nesterow/dal/pkg/proto v0.0.0
|
require pkg/proto v0.0.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
||||||
github.com/tinylib/msgp v1.2.0 // indirect
|
github.com/tinylib/msgp v1.2.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../adapter
|
replace pkg/adapter v0.0.0 => ../adapter
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/proto v0.0.0 => ../proto
|
replace pkg/proto v0.0.0 => ../proto
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../filters
|
replace pkg/filters v0.0.0 => ../filters
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/mattn/go-sqlite3 v1.14.22
|
github.com/mattn/go-sqlite3 v1.14.22
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
|
pkg/filters v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
|
pkg/utils v0.0.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,9 +5,10 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"pkg/adapter"
|
||||||
|
"pkg/proto"
|
||||||
|
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
|
||||||
"github.com/nesterow/dal/pkg/proto"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestProtoMessagePack(t *testing.T) {
|
func TestProtoMessagePack(t *testing.T) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
utils "github.com/nesterow/dal/pkg/utils"
|
utils "pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2,8 +2,8 @@ module pkg/adapter
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
require github.com/nesterow/dal/pkg/utils v0.0.0-00010101000000-000000000000
|
require pkg/utils v0.0.0-00010101000000-000000000000
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils => ../utils
|
replace pkg/utils => ../utils
|
||||||
|
|
||||||
require github.com/pkg/errors v0.9.1 // indirect
|
require github.com/pkg/errors v0.9.1 // indirect
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
utils "github.com/nesterow/dal/pkg/utils"
|
utils "pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func convertConflict(ctx Dialect, fields ...string) string {
|
func convertConflict(ctx Dialect, fields ...string) string {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
filters "github.com/nesterow/dal/pkg/filters"
|
filters "pkg/filters"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Values = []interface{}
|
type Values = []interface{}
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/utils"
|
"pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func convertGroup(ctx Dialect, keys []string) string {
|
func convertGroup(ctx Dialect, keys []string) string {
|
||||||
|
|
|
@ -3,15 +3,15 @@ module pkg/builder
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/adapter v0.0.0
|
pkg/adapter v0.0.0
|
||||||
github.com/nesterow/dal/pkg/filters v0.0.0-00010101000000-000000000000
|
pkg/filters v0.0.0-00010101000000-000000000000
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0
|
pkg/utils v0.0.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils => ../utils
|
replace pkg/utils => ../utils
|
||||||
|
|
||||||
require github.com/pkg/errors v0.9.1 // indirect
|
require github.com/pkg/errors v0.9.1 // indirect
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/filters => ../filters
|
replace pkg/filters => ../filters
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter => ../adapter
|
replace pkg/adapter => ../adapter
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package builder
|
package builder
|
||||||
|
|
||||||
import (
|
import (
|
||||||
adapter "github.com/nesterow/dal/pkg/adapter"
|
adapter "pkg/adapter"
|
||||||
filters "github.com/nesterow/dal/pkg/filters"
|
filters "pkg/filters"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RawSql = map[string]interface{}
|
type RawSql = map[string]interface{}
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
"pkg/adapter"
|
||||||
"github.com/nesterow/dal/pkg/proto"
|
"pkg/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
var db adapter.DBAdapter
|
var db adapter.DBAdapter
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
"pkg/adapter"
|
||||||
"github.com/nesterow/dal/pkg/handler"
|
"pkg/handler"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SQLiteServer struct {
|
type SQLiteServer struct {
|
||||||
|
|
|
@ -2,29 +2,29 @@ module pkg/facade
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/filters => ../filters
|
replace pkg/filters => ../filters
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/builder => ../builder
|
replace pkg/builder => ../builder
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/adapter v0.0.0
|
pkg/adapter v0.0.0
|
||||||
github.com/nesterow/dal/pkg/handler v0.0.0-00010101000000-000000000000
|
pkg/handler v0.0.0-00010101000000-000000000000
|
||||||
github.com/nesterow/dal/pkg/proto v0.0.0
|
pkg/proto v0.0.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter => ../adapter
|
replace pkg/adapter => ../adapter
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils => ../utils
|
replace pkg/utils => ../utils
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
|
pkg/builder v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
|
pkg/filters v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
|
pkg/utils v0.0.0 // indirect
|
||||||
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/tinylib/msgp v1.2.0 // indirect
|
github.com/tinylib/msgp v1.2.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/proto => ../proto
|
replace pkg/proto => ../proto
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/handler => ../handler
|
replace pkg/handler => ../handler
|
||||||
|
|
|
@ -3,7 +3,7 @@ package filters
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/utils"
|
"pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Between struct {
|
type Between struct {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/utils"
|
"pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type In struct {
|
type In struct {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package filters
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/utils"
|
"pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NotBetween struct {
|
type NotBetween struct {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/utils"
|
"pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NotIn struct {
|
type NotIn struct {
|
||||||
|
|
|
@ -5,10 +5,10 @@ go 1.22.6
|
||||||
require github.com/pkg/errors v0.9.1 // indirect
|
require github.com/pkg/errors v0.9.1 // indirect
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/adapter v0.0.0-00010101000000-000000000000
|
pkg/adapter v0.0.0-00010101000000-000000000000
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0-00010101000000-000000000000
|
pkg/utils v0.0.0-00010101000000-000000000000
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils => ../utils
|
replace pkg/utils => ../utils
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter => ../adapter
|
replace pkg/adapter => ../adapter
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package filters
|
package filters
|
||||||
|
|
||||||
import "github.com/nesterow/dal/pkg/adapter"
|
import "pkg/adapter"
|
||||||
|
|
||||||
type DialectOpts = adapter.DialectOpts
|
type DialectOpts = adapter.DialectOpts
|
||||||
type Dialect = adapter.Dialect
|
type Dialect = adapter.Dialect
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
adapter "github.com/nesterow/dal/pkg/adapter"
|
adapter "pkg/adapter"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SQLiteContext = adapter.CommonDialect
|
type SQLiteContext = adapter.CommonDialect
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
module github.com/nesterow/dal/pkg/http
|
module pkg/http
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/filters => ../filters
|
replace pkg/filters => ../filters
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/builder => ../builder
|
replace pkg/builder => ../builder
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/adapter v0.0.0
|
pkg/adapter v0.0.0
|
||||||
github.com/nesterow/dal/pkg/proto v0.0.0-00010101000000-000000000000
|
pkg/proto v0.0.0-00010101000000-000000000000
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
|
pkg/builder v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
|
pkg/filters v0.0.0 // indirect
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
|
pkg/utils v0.0.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter => ../adapter
|
replace pkg/adapter => ../adapter
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils => ../utils
|
replace pkg/utils => ../utils
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/proto => ../proto
|
replace pkg/proto => ../proto
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/mattn/go-sqlite3 v1.14.22
|
github.com/mattn/go-sqlite3 v1.14.22
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
"pkg/adapter"
|
||||||
"github.com/nesterow/dal/pkg/proto"
|
"pkg/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
|
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
"pkg/adapter"
|
||||||
"github.com/nesterow/dal/pkg/proto"
|
"pkg/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestQueryHandler(t *testing.T) {
|
func TestQueryHandler(t *testing.T) {
|
||||||
|
|
|
@ -2,24 +2,24 @@ module pkg/proto
|
||||||
|
|
||||||
go 1.22.6
|
go 1.22.6
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/builder => ../builder
|
replace pkg/builder => ../builder
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/adapter v0.0.0
|
pkg/adapter v0.0.0
|
||||||
github.com/nesterow/dal/pkg/builder v0.0.0-00010101000000-000000000000
|
pkg/builder v0.0.0-00010101000000-000000000000
|
||||||
github.com/tinylib/msgp v1.2.0
|
github.com/tinylib/msgp v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
require github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/utils => ../utils
|
replace pkg/utils => ../utils
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/adapter => ../adapter
|
replace pkg/adapter => ../adapter
|
||||||
|
|
||||||
replace github.com/nesterow/dal/pkg/filters => ../filters
|
replace pkg/filters => ../filters
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/nesterow/dal/pkg/filters v0.0.0-00010101000000-000000000000 // indirect
|
pkg/filters v0.0.0-00010101000000-000000000000 // indirect
|
||||||
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
|
pkg/utils v0.0.0 // indirect
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/nesterow/dal/pkg/adapter"
|
"pkg/adapter"
|
||||||
"github.com/nesterow/dal/pkg/builder"
|
"pkg/builder"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate msgp
|
//go:generate msgp
|
||||||
|
|
Loading…
Reference in a new issue