[ref] mod paths

This commit is contained in:
Anton Nesterov 2024-08-20 19:34:01 +02:00
parent d58e5631c4
commit 37a82c835b
No known key found for this signature in database
GPG key ID: 59121E8AE2851FB5
33 changed files with 132 additions and 126 deletions

View file

@ -4,8 +4,9 @@ import "C"
import (
"strings"
"pkg/facade"
_ "github.com/mattn/go-sqlite3"
"github.com/nesterow/dal/pkg/facade"
)
//export InitSQLite

View file

@ -2,35 +2,35 @@ module binding
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 (
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 (
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/tinylib/msgp v1.2.0 // indirect
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
github.com/nesterow/dal/pkg/proto v0.0.0 // indirect
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
pkg/builder v0.0.0 // indirect
pkg/filters v0.0.0 // indirect
pkg/proto v0.0.0 // indirect
pkg/utils v0.0.0 // indirect
)

View file

@ -2,29 +2,29 @@ module srv
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 (
github.com/mattn/go-sqlite3 v1.14.22
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/tinylib/msgp v1.2.0 // indirect
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
github.com/nesterow/dal/pkg/proto v0.0.0 // indirect
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
pkg/builder v0.0.0 // indirect
pkg/filters v0.0.0 // indirect
pkg/proto v0.0.0 // indirect
pkg/utils v0.0.0 // indirect
)

View file

@ -7,9 +7,10 @@ import (
"os/signal"
"syscall"
"pkg/adapter"
"pkg/handler"
_ "github.com/mattn/go-sqlite3"
"github.com/nesterow/dal/pkg/adapter"
"github.com/nesterow/dal/pkg/handler"
)
func mock(adapter adapter.DBAdapter) {

26
go.mod
View file

@ -2,30 +2,30 @@ module github.com/nesterow/dal
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 (
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 (
github.com/nesterow/dal/pkg/adapter v0.0.0 // indirect
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
github.com/nesterow/dal/pkg/handler v0.0.0-00010101000000-000000000000 // indirect
github.com/nesterow/dal/pkg/proto v0.0.0 // indirect
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
pkg/adapter v0.0.0 // indirect
pkg/builder v0.0.0 // indirect
pkg/filters v0.0.0 // indirect
pkg/handler v0.0.0-00010101000000-000000000000 // indirect
pkg/proto v0.0.0 // indirect
pkg/utils v0.0.0 // indirect
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/tinylib/msgp v1.2.0 // indirect

4
go.sum
View file

@ -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/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
github.com/nesterow/dal/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 h1:r/itSeN7w1MChNw9uirGtvI7jM2OITrbyBmLjpRqIqs=
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/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

View file

@ -1,8 +1,9 @@
package main
import (
_ "github.com/mattn/go-sqlite3"
"github.com/nesterow/dal/pkg/facade"
_ "github.com/mattn/go-sqlite3"
)
func main() {

View file

@ -4,8 +4,9 @@ import (
"fmt"
"testing"
"pkg/adapter"
_ "github.com/mattn/go-sqlite3"
"github.com/nesterow/dal/pkg/adapter"
)
func TestAdapterBasic(t *testing.T) {

View file

@ -4,9 +4,10 @@ import (
"fmt"
"testing"
"pkg/adapter"
"pkg/builder"
_ "github.com/mattn/go-sqlite3"
"github.com/nesterow/dal/pkg/adapter"
"github.com/nesterow/dal/pkg/builder"
)
func TestBuilderBasic(t *testing.T) {

View file

@ -1,31 +1,31 @@
module github.com/nesterow/dal/pkg/tests
module pkg/tests
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 (
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // 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 (
github.com/mattn/go-sqlite3 v1.14.22
github.com/pkg/errors v0.9.1 // indirect
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
pkg/filters v0.0.0 // indirect
pkg/utils v0.0.0 // indirect
)

View file

@ -5,9 +5,10 @@ import (
"os"
"testing"
"pkg/adapter"
"pkg/proto"
_ "github.com/mattn/go-sqlite3"
"github.com/nesterow/dal/pkg/adapter"
"github.com/nesterow/dal/pkg/proto"
)
func TestProtoMessagePack(t *testing.T) {

View file

@ -4,7 +4,7 @@ import (
"strconv"
"strings"
utils "github.com/nesterow/dal/pkg/utils"
utils "pkg/utils"
)
/*

View file

@ -2,8 +2,8 @@ module pkg/adapter
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

View file

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
utils "github.com/nesterow/dal/pkg/utils"
utils "pkg/utils"
)
func convertConflict(ctx Dialect, fields ...string) string {

View file

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
filters "github.com/nesterow/dal/pkg/filters"
filters "pkg/filters"
)
type Values = []interface{}

View file

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/nesterow/dal/pkg/utils"
"pkg/utils"
)
func convertGroup(ctx Dialect, keys []string) string {

View file

@ -3,15 +3,15 @@ module pkg/builder
go 1.22.6
require (
github.com/nesterow/dal/pkg/adapter v0.0.0
github.com/nesterow/dal/pkg/filters v0.0.0-00010101000000-000000000000
github.com/nesterow/dal/pkg/utils v0.0.0
pkg/adapter v0.0.0
pkg/filters v0.0.0-00010101000000-000000000000
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
replace github.com/nesterow/dal/pkg/filters => ../filters
replace pkg/filters => ../filters
replace github.com/nesterow/dal/pkg/adapter => ../adapter
replace pkg/adapter => ../adapter

View file

@ -1,8 +1,8 @@
package builder
import (
adapter "github.com/nesterow/dal/pkg/adapter"
filters "github.com/nesterow/dal/pkg/filters"
adapter "pkg/adapter"
filters "pkg/filters"
)
type RawSql = map[string]interface{}

View file

@ -4,8 +4,8 @@ import (
"log"
"reflect"
"github.com/nesterow/dal/pkg/adapter"
"github.com/nesterow/dal/pkg/proto"
"pkg/adapter"
"pkg/proto"
)
var db adapter.DBAdapter

View file

@ -6,8 +6,8 @@ import (
"os"
"strings"
"github.com/nesterow/dal/pkg/adapter"
"github.com/nesterow/dal/pkg/handler"
"pkg/adapter"
"pkg/handler"
)
type SQLiteServer struct {

View file

@ -2,29 +2,29 @@ module pkg/facade
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 (
github.com/nesterow/dal/pkg/adapter v0.0.0
github.com/nesterow/dal/pkg/handler v0.0.0-00010101000000-000000000000
github.com/nesterow/dal/pkg/proto v0.0.0
pkg/adapter v0.0.0
pkg/handler v0.0.0-00010101000000-000000000000
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 (
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
pkg/builder v0.0.0 // indirect
pkg/filters v0.0.0 // indirect
pkg/utils v0.0.0 // indirect
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
github.com/pkg/errors v0.9.1 // 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

View file

@ -3,7 +3,7 @@ package filters
import (
"fmt"
"github.com/nesterow/dal/pkg/utils"
"pkg/utils"
)
type Between struct {

View file

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/nesterow/dal/pkg/utils"
"pkg/utils"
)
type In struct {

View file

@ -3,7 +3,7 @@ package filters
import (
"fmt"
"github.com/nesterow/dal/pkg/utils"
"pkg/utils"
)
type NotBetween struct {

View file

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/nesterow/dal/pkg/utils"
"pkg/utils"
)
type NotIn struct {

View file

@ -5,10 +5,10 @@ go 1.22.6
require github.com/pkg/errors v0.9.1 // indirect
require (
github.com/nesterow/dal/pkg/adapter v0.0.0-00010101000000-000000000000
github.com/nesterow/dal/pkg/utils v0.0.0-00010101000000-000000000000
pkg/adapter 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

View file

@ -1,6 +1,6 @@
package filters
import "github.com/nesterow/dal/pkg/adapter"
import "pkg/adapter"
type DialectOpts = adapter.DialectOpts
type Dialect = adapter.Dialect

View file

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
adapter "github.com/nesterow/dal/pkg/adapter"
adapter "pkg/adapter"
)
type SQLiteContext = adapter.CommonDialect

View file

@ -1,27 +1,27 @@
module github.com/nesterow/dal/pkg/http
module pkg/http
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 (
github.com/nesterow/dal/pkg/adapter v0.0.0
github.com/nesterow/dal/pkg/proto v0.0.0-00010101000000-000000000000
pkg/adapter v0.0.0
pkg/proto v0.0.0-00010101000000-000000000000
)
require (
github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
pkg/builder v0.0.0 // indirect
pkg/filters 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 (
github.com/mattn/go-sqlite3 v1.14.22

View file

@ -5,8 +5,8 @@ import (
"net/http"
"reflect"
"github.com/nesterow/dal/pkg/adapter"
"github.com/nesterow/dal/pkg/proto"
"pkg/adapter"
"pkg/proto"
)
/*

View file

@ -10,8 +10,8 @@ import (
_ "github.com/mattn/go-sqlite3"
"github.com/nesterow/dal/pkg/adapter"
"github.com/nesterow/dal/pkg/proto"
"pkg/adapter"
"pkg/proto"
)
func TestQueryHandler(t *testing.T) {

View file

@ -2,24 +2,24 @@ module pkg/proto
go 1.22.6
replace github.com/nesterow/dal/pkg/builder => ../builder
replace pkg/builder => ../builder
require (
github.com/nesterow/dal/pkg/adapter v0.0.0
github.com/nesterow/dal/pkg/builder v0.0.0-00010101000000-000000000000
pkg/adapter v0.0.0
pkg/builder v0.0.0-00010101000000-000000000000
github.com/tinylib/msgp v1.2.0
)
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 (
github.com/nesterow/dal/pkg/filters v0.0.0-00010101000000-000000000000 // indirect
github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
pkg/filters v0.0.0-00010101000000-000000000000 // indirect
pkg/utils v0.0.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
)

View file

@ -6,8 +6,8 @@ import (
"slices"
"strings"
"github.com/nesterow/dal/pkg/adapter"
"github.com/nesterow/dal/pkg/builder"
"pkg/adapter"
"pkg/builder"
)
//go:generate msgp