[ref] expose packages on github

This commit is contained in:
Anton Nesterov 2024-08-20 15:53:12 +02:00
parent 9c53bdf358
commit cc113ecc49
No known key found for this signature in database
GPG key ID: 59121E8AE2851FB5
32 changed files with 118 additions and 118 deletions

View file

@ -5,7 +5,7 @@ import (
"strings" "strings"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
"l12.xyz/dal/facade" "github.com/nesterow/dal/pkg/facade"
) )
//export InitSQLite //export InitSQLite

View file

@ -2,35 +2,35 @@ module binding
go 1.22.6 go 1.22.6
replace l12.xyz/dal/filters v0.0.0 => ../pkg/filters replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../pkg/filters
replace l12.xyz/dal/builder v0.0.0 => ../pkg/builder replace github.com/nesterow/dal/pkg/builder v0.0.0 => ../pkg/builder
replace l12.xyz/dal/handler v0.0.0 => ../pkg/handler replace github.com/nesterow/dal/pkg/handler v0.0.0 => ../pkg/handler
require l12.xyz/dal/adapter v0.0.0 // indirect require github.com/nesterow/dal/pkg/adapter v0.0.0 // indirect
replace l12.xyz/dal/adapter v0.0.0 => ../pkg/adapter replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../pkg/adapter
replace l12.xyz/dal/utils v0.0.0 => ../pkg/utils replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../pkg/utils
replace l12.xyz/dal/proto v0.0.0 => ../pkg/proto replace github.com/nesterow/dal/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
l12.xyz/dal/facade v0.0.0 github.com/nesterow/dal/pkg/facade v0.0.0
) )
require l12.xyz/dal/handler v0.0.0 // indirect require github.com/nesterow/dal/pkg/handler v0.0.0 // indirect
replace l12.xyz/dal/facade v0.0.0 => ../pkg/facade replace github.com/nesterow/dal/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
l12.xyz/dal/builder v0.0.0 // indirect github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
l12.xyz/dal/filters v0.0.0 // indirect github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
l12.xyz/dal/proto v0.0.0 // indirect github.com/nesterow/dal/pkg/proto v0.0.0 // indirect
l12.xyz/dal/utils v0.0.0 // indirect github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
) )

View file

@ -2,29 +2,29 @@ module srv
go 1.22.6 go 1.22.6
replace l12.xyz/dal/filters v0.0.0 => ../../../pkg/filters replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../../../pkg/filters
replace l12.xyz/dal/builder v0.0.0 => ../../../pkg/builder replace github.com/nesterow/dal/pkg/builder v0.0.0 => ../../../pkg/builder
require l12.xyz/dal/adapter v0.0.0 require github.com/nesterow/dal/pkg/adapter v0.0.0
replace l12.xyz/dal/adapter v0.0.0 => ../../../pkg/adapter replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../../../pkg/adapter
replace l12.xyz/dal/utils v0.0.0 => ../../../pkg/utils replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../../../pkg/utils
replace l12.xyz/dal/proto v0.0.0 => ../../../pkg/proto replace github.com/nesterow/dal/pkg/proto v0.0.0 => ../../../pkg/proto
require l12.xyz/dal/handler v0.0.0 require github.com/nesterow/dal/pkg/handler v0.0.0
replace l12.xyz/dal/handler v0.0.0 => ../../../pkg/handler replace github.com/nesterow/dal/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
l12.xyz/dal/builder v0.0.0 // indirect github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
l12.xyz/dal/filters v0.0.0 // indirect github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
l12.xyz/dal/proto v0.0.0 // indirect github.com/nesterow/dal/pkg/proto v0.0.0 // indirect
l12.xyz/dal/utils v0.0.0 // indirect github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
) )

View file

@ -8,8 +8,8 @@ import (
"syscall" "syscall"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
"l12.xyz/dal/adapter" "github.com/nesterow/dal/pkg/adapter"
"l12.xyz/dal/handler" "github.com/nesterow/dal/pkg/handler"
) )
func mock(adapter adapter.DBAdapter) { func mock(adapter adapter.DBAdapter) {

2
go.mod
View file

@ -1,3 +1,3 @@
module l12.xyz/dal module github.com/nesterow/dal
go 1.22.6 go 1.22.6

View file

@ -5,7 +5,7 @@ import (
"testing" "testing"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
"l12.xyz/dal/adapter" "github.com/nesterow/dal/pkg/adapter"
) )
func TestAdapterBasic(t *testing.T) { func TestAdapterBasic(t *testing.T) {

View file

@ -5,8 +5,8 @@ import (
"testing" "testing"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
"l12.xyz/dal/adapter" "github.com/nesterow/dal/pkg/adapter"
"l12.xyz/dal/builder" "github.com/nesterow/dal/pkg/builder"
) )
func TestBuilderBasic(t *testing.T) { func TestBuilderBasic(t *testing.T) {

View file

@ -1,31 +1,31 @@
module l12.xyz/dal/tests module github.com/nesterow/dal/pkg/tests
go 1.22.6 go 1.22.6
require l12.xyz/dal/builder v0.0.0 require github.com/nesterow/dal/pkg/builder v0.0.0
replace l12.xyz/dal/builder v0.0.0 => ../builder replace github.com/nesterow/dal/pkg/builder v0.0.0 => ../builder
replace l12.xyz/dal/utils v0.0.0 => ../utils replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../utils
require l12.xyz/dal/adapter v0.0.0 require github.com/nesterow/dal/pkg/adapter v0.0.0
require l12.xyz/dal/proto v0.0.0 require github.com/nesterow/dal/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 l12.xyz/dal/adapter v0.0.0 => ../adapter replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../adapter
replace l12.xyz/dal/proto v0.0.0 => ../proto replace github.com/nesterow/dal/pkg/proto v0.0.0 => ../proto
replace l12.xyz/dal/filters v0.0.0 => ../filters replace github.com/nesterow/dal/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
l12.xyz/dal/filters v0.0.0 // indirect github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
l12.xyz/dal/utils v0.0.0 // indirect github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
) )

View file

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

View file

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

View file

@ -1,11 +1,11 @@
module l12.xyz/dal/adapter module github.com/nesterow/dal/pkg/adapter
go 1.22.6 go 1.22.6
replace l12.xyz/dal/utils v0.0.0 => ../utils replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../utils
replace l12.xyz/dal/filters v0.0.0 => ../filters replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../filters
require l12.xyz/dal/utils v0.0.0 require github.com/nesterow/dal/pkg/utils v0.0.0
require github.com/pkg/errors v0.9.1 // indirect require github.com/pkg/errors v0.9.1 // indirect

View file

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

View file

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

View file

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

View file

@ -1,17 +1,17 @@
module l12.xyz/dal/builder module github.com/nesterow/dal/pkg/builder
go 1.22.6 go 1.22.6
require l12.xyz/dal/utils v0.0.0 require github.com/nesterow/dal/pkg/utils v0.0.0
replace l12.xyz/dal/utils v0.0.0 => ../utils replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../utils
require l12.xyz/dal/filters v0.0.0 require github.com/nesterow/dal/pkg/filters v0.0.0
require github.com/pkg/errors v0.9.1 // indirect require github.com/pkg/errors v0.9.1 // indirect
replace l12.xyz/dal/filters v0.0.0 => ../filters replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../filters
require l12.xyz/dal/adapter v0.0.0 require github.com/nesterow/dal/pkg/adapter v0.0.0
replace l12.xyz/dal/adapter v0.0.0 => ../adapter replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../adapter

View file

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

View file

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

View file

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

View file

@ -1,29 +1,29 @@
module l12.xyz/dal/facade module github.com/nesterow/dal/pkg/facade
go 1.22.6 go 1.22.6
replace l12.xyz/dal/filters v0.0.0 => ../filters replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../filters
replace l12.xyz/dal/builder v0.0.0 => ../builder replace github.com/nesterow/dal/pkg/builder v0.0.0 => ../builder
require l12.xyz/dal/adapter v0.0.0 require github.com/nesterow/dal/pkg/adapter v0.0.0
replace l12.xyz/dal/adapter v0.0.0 => ../adapter replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../adapter
replace l12.xyz/dal/utils v0.0.0 => ../utils replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../utils
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
l12.xyz/dal/builder v0.0.0 // indirect github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
l12.xyz/dal/filters v0.0.0 // indirect github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
l12.xyz/dal/utils v0.0.0 // indirect github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
l12.xyz/dal/proto v0.0.0 github.com/nesterow/dal/pkg/proto v0.0.0
) )
replace l12.xyz/dal/proto v0.0.0 => ../proto replace github.com/nesterow/dal/pkg/proto v0.0.0 => ../proto
require l12.xyz/dal/handler v0.0.0 require github.com/nesterow/dal/pkg/handler v0.0.0
replace l12.xyz/dal/handler v0.0.0 => ../handler replace github.com/nesterow/dal/pkg/handler v0.0.0 => ../handler

View file

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

View file

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

View file

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

View file

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

View file

@ -1,13 +1,13 @@
module l12.xyz/dal/filters module github.com/nesterow/dal/pkg/filters
go 1.22.6 go 1.22.6
require github.com/pkg/errors v0.9.1 // indirect require github.com/pkg/errors v0.9.1 // indirect
require l12.xyz/dal/utils v0.0.0 require github.com/nesterow/dal/pkg/utils v0.0.0
replace l12.xyz/dal/utils v0.0.0 => ../utils replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../utils
require l12.xyz/dal/adapter v0.0.0 require github.com/nesterow/dal/pkg/adapter v0.0.0
replace l12.xyz/dal/adapter v0.0.0 => ../adapter replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../adapter

View file

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

View file

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

View file

@ -1,20 +1,20 @@
module l12.xyz/dal/http module github.com/nesterow/dal/pkg/http
go 1.22.6 go 1.22.6
replace l12.xyz/dal/filters v0.0.0 => ../filters replace github.com/nesterow/dal/pkg/filters v0.0.0 => ../filters
replace l12.xyz/dal/builder v0.0.0 => ../builder replace github.com/nesterow/dal/pkg/builder v0.0.0 => ../builder
require l12.xyz/dal/adapter v0.0.0 require github.com/nesterow/dal/pkg/adapter v0.0.0
replace l12.xyz/dal/adapter v0.0.0 => ../adapter replace github.com/nesterow/dal/pkg/adapter v0.0.0 => ../adapter
replace l12.xyz/dal/utils v0.0.0 => ../utils replace github.com/nesterow/dal/pkg/utils v0.0.0 => ../utils
require l12.xyz/dal/proto v0.0.0 require github.com/nesterow/dal/pkg/proto v0.0.0
replace l12.xyz/dal/proto v0.0.0 => ../proto replace github.com/nesterow/dal/pkg/proto v0.0.0 => ../proto
require ( require (
github.com/mattn/go-sqlite3 v1.14.22 github.com/mattn/go-sqlite3 v1.14.22
@ -22,7 +22,7 @@ require (
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
l12.xyz/dal/builder v0.0.0 // indirect github.com/nesterow/dal/pkg/builder v0.0.0 // indirect
l12.xyz/dal/filters v0.0.0 // indirect github.com/nesterow/dal/pkg/filters v0.0.0 // indirect
l12.xyz/dal/utils v0.0.0 // indirect github.com/nesterow/dal/pkg/utils v0.0.0 // indirect
) )

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
module l12.xyz/dal/utils module github.com/nesterow/dal/pkg/utils
go 1.22.6 go 1.22.6