Bulk replace project references in go code
This commit is contained in:
parent
814ebddfa2
commit
4474319e73
170 changed files with 488 additions and 488 deletions
|
|
@ -13,18 +13,18 @@ import (
|
||||||
_ "github.com/lib/pq"
|
_ "github.com/lib/pq"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
mysqlgen "github.com/go-jet/jet/v2/generator/mysql"
|
mysqlgen "github.com/Gleipnir-Technology/jet/generator/mysql"
|
||||||
postgresgen "github.com/go-jet/jet/v2/generator/postgres"
|
postgresgen "github.com/Gleipnir-Technology/jet/generator/postgres"
|
||||||
sqlitegen "github.com/go-jet/jet/v2/generator/sqlite"
|
sqlitegen "github.com/Gleipnir-Technology/jet/generator/sqlite"
|
||||||
"github.com/go-jet/jet/v2/generator/template"
|
"github.com/Gleipnir-Technology/jet/generator/template"
|
||||||
"github.com/go-jet/jet/v2/internal/3rdparty/snaker"
|
"github.com/Gleipnir-Technology/jet/internal/3rdparty/snaker"
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/errfmt"
|
"github.com/Gleipnir-Technology/jet/internal/utils/errfmt"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/strslice"
|
"github.com/Gleipnir-Technology/jet/internal/utils/strslice"
|
||||||
"github.com/go-jet/jet/v2/mysql"
|
"github.com/Gleipnir-Technology/jet/mysql"
|
||||||
postgres2 "github.com/go-jet/jet/v2/postgres"
|
postgres2 "github.com/Gleipnir-Technology/jet/postgres"
|
||||||
"github.com/go-jet/jet/v2/sqlite"
|
"github.com/Gleipnir-Technology/jet/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
6
doc.go
6
doc.go
|
|
@ -7,12 +7,12 @@ Jet currently supports PostgreSQL, MySQL, MariaDB and SQLite. Future releases wi
|
||||||
|
|
||||||
Use the command bellow to add jet as a dependency into go.mod project:
|
Use the command bellow to add jet as a dependency into go.mod project:
|
||||||
|
|
||||||
$ go get -u github.com/go-jet/jet/v2
|
$ go get -u github.com/Gleipnir-Technology/jet
|
||||||
|
|
||||||
Jet generator can be installed in one of the following ways:
|
Jet generator can be installed in one of the following ways:
|
||||||
|
|
||||||
1. (Go1.16+) Install jet generator using go install:
|
1. (Go1.16+) Install jet generator using go install:
|
||||||
go install github.com/go-jet/jet/v2/cmd/jet@latest
|
go install github.com/Gleipnir-Technology/jet/cmd/jet@latest
|
||||||
|
|
||||||
2. Install jet generator to GOPATH/bin folder:
|
2. Install jet generator to GOPATH/bin folder:
|
||||||
cd $GOPATH/src/ && GO111MODULE=off go get -u github.com/go-jet/jet/cmd/jet
|
cd $GOPATH/src/ && GO111MODULE=off go get -u github.com/go-jet/jet/cmd/jet
|
||||||
|
|
@ -38,7 +38,7 @@ Before we can write SQL queries in Go, we need to import generated SQL builder a
|
||||||
|
|
||||||
To write postgres SQL queries we import:
|
To write postgres SQL queries we import:
|
||||||
|
|
||||||
. "github.com/go-jet/jet/v2/postgres" // Dot import is used so that Go code resemble as much as native SQL. It is not mandatory.
|
. "github.com/Gleipnir-Technology/jet/postgres" // Dot import is used so that Go code resemble as much as native SQL. It is not mandatory.
|
||||||
|
|
||||||
Then we can write the SQL query:
|
Then we can write the SQL query:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
package enum
|
package enum
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/postgres"
|
import "github.com/Gleipnir-Technology/jet/postgres"
|
||||||
|
|
||||||
var MpaaRating = &struct {
|
var MpaaRating = &struct {
|
||||||
G postgres.StringExpression
|
G postgres.StringExpression
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Actor = newActorTable("dvds", "actor", "")
|
var Actor = newActorTable("dvds", "actor", "")
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Category = newCategoryTable("dvds", "category", "")
|
var Category = newCategoryTable("dvds", "category", "")
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Film = newFilmTable("dvds", "film", "")
|
var Film = newFilmTable("dvds", "film", "")
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
var FilmActor = newFilmActorTable("dvds", "film_actor", "")
|
var FilmActor = newFilmActorTable("dvds", "film_actor", "")
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
var FilmCategory = newFilmCategoryTable("dvds", "film_category", "")
|
var FilmCategory = newFilmCategoryTable("dvds", "film_category", "")
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Language = newLanguageTable("dvds", "language", "")
|
var Language = newLanguageTable("dvds", "language", "")
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package view
|
package view
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ActorInfo = newActorInfoTable("dvds", "actor_info", "")
|
var ActorInfo = newActorInfoTable("dvds", "actor_info", "")
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package view
|
package view
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CustomerList = newCustomerListTable("dvds", "customer_list", "")
|
var CustomerList = newCustomerListTable("dvds", "customer_list", "")
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ import (
|
||||||
|
|
||||||
// dot import so that jet go code would resemble as much as native SQL
|
// dot import so that jet go code would resemble as much as native SQL
|
||||||
// dot import is not mandatory
|
// dot import is not mandatory
|
||||||
. "github.com/go-jet/jet/v2/examples/quick-start/.gen/jetdb/dvds/table"
|
. "github.com/Gleipnir-Technology/jet/examples/quick-start/.gen/jetdb/dvds/table"
|
||||||
. "github.com/go-jet/jet/v2/postgres"
|
. "github.com/Gleipnir-Technology/jet/postgres"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/examples/quick-start/.gen/jetdb/dvds/enum"
|
"github.com/Gleipnir-Technology/jet/examples/quick-start/.gen/jetdb/dvds/enum"
|
||||||
"github.com/go-jet/jet/v2/examples/quick-start/.gen/jetdb/dvds/model"
|
"github.com/Gleipnir-Technology/jet/examples/quick-start/.gen/jetdb/dvds/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/generator/template"
|
"github.com/Gleipnir-Technology/jet/generator/template"
|
||||||
"github.com/go-jet/jet/v2/mysql"
|
"github.com/Gleipnir-Technology/jet/mysql"
|
||||||
mysqldr "github.com/go-sql-driver/mysql"
|
mysqldr "github.com/go-sql-driver/mysql"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/qrm"
|
"github.com/Gleipnir-Technology/jet/qrm"
|
||||||
)
|
)
|
||||||
|
|
||||||
// mySqlQuerySet is dialect query set for MySQL
|
// mySqlQuerySet is dialect query set for MySQL
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/generator/template"
|
"github.com/Gleipnir-Technology/jet/generator/template"
|
||||||
"github.com/go-jet/jet/v2/postgres"
|
"github.com/Gleipnir-Technology/jet/postgres"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DBConnection contains postgres connection details
|
// DBConnection contains postgres connection details
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/qrm"
|
"github.com/Gleipnir-Technology/jet/qrm"
|
||||||
)
|
)
|
||||||
|
|
||||||
// postgresQuerySet is dialect query set for PostgreSQL
|
// postgresQuerySet is dialect query set for PostgreSQL
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/semantic"
|
"github.com/Gleipnir-Technology/jet/internal/utils/semantic"
|
||||||
"github.com/go-jet/jet/v2/qrm"
|
"github.com/Gleipnir-Technology/jet/qrm"
|
||||||
)
|
)
|
||||||
|
|
||||||
// sqliteQuerySet is dialect query set for SQLite
|
// sqliteQuerySet is dialect query set for SQLite
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/generator/template"
|
"github.com/Gleipnir-Technology/jet/generator/template"
|
||||||
"github.com/go-jet/jet/v2/sqlite"
|
"github.com/Gleipnir-Technology/jet/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GenerateDSN generates jet files using dsn connection string
|
// GenerateDSN generates jet files using dsn connection string
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ type {{$modelTableTemplate.TypeName}} struct {
|
||||||
|
|
||||||
var enumSQLBuilderTemplate = `package {{package}}
|
var enumSQLBuilderTemplate = `package {{package}}
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/{{dialect.PackageName}}"
|
import "github.com/Gleipnir-Technology/jet/{{dialect.PackageName}}"
|
||||||
|
|
||||||
{{golangComment .Comment}}
|
{{golangComment .Comment}}
|
||||||
var {{enumTemplate.InstanceName}} = &struct {
|
var {{enumTemplate.InstanceName}} = &struct {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package template
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Template is generator template used for file generation
|
// Template is generator template used for file generation
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/jackc/pgtype"
|
"github.com/jackc/pgtype"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/dbidentifier"
|
"github.com/Gleipnir-Technology/jet/internal/utils/dbidentifier"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Model is template for model files generation
|
// Model is template for model files generation
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package template
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/utils/filesys"
|
"github.com/Gleipnir-Technology/jet/internal/utils/filesys"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Dialect = jet.Dialect
|
type Dialect = jet.Dialect
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/dbidentifier"
|
"github.com/Gleipnir-Technology/jet/internal/utils/dbidentifier"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SQLBuilder is template for generating sql builder files
|
// SQLBuilder is template for generating sql builder files
|
||||||
|
|
@ -162,7 +162,7 @@ func renameIfReserved(name string) string {
|
||||||
func DefaultTableSQLBuilderColumn(dialect jet.Dialect, columnMetaData metadata.Column) TableSQLBuilderColumn {
|
func DefaultTableSQLBuilderColumn(dialect jet.Dialect, columnMetaData metadata.Column) TableSQLBuilderColumn {
|
||||||
package_name := dialect.PackageName()
|
package_name := dialect.PackageName()
|
||||||
return TableSQLBuilderColumn{
|
return TableSQLBuilderColumn{
|
||||||
Import: "github.com/go-jet/jet/v2/" + package_name,
|
Import: "github.com/Gleipnir-Technology/jet/" + package_name,
|
||||||
Name: renameIfReserved(dbidentifier.ToGoIdentifier(columnMetaData.Name)),
|
Name: renameIfReserved(dbidentifier.ToGoIdentifier(columnMetaData.Name)),
|
||||||
PackageName: package_name,
|
PackageName: package_name,
|
||||||
Type: "Column" + getSqlBuilderColumnType(columnMetaData),
|
Type: "Column" + getSqlBuilderColumnType(columnMetaData),
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package template
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/Gleipnir-Technology/jet/generator/metadata"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/go-jet/jet/v2
|
module github.com/Gleipnir-Technology/jet
|
||||||
|
|
||||||
go 1.24.0
|
go 1.24.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package jet
|
package jet
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/utils/is"
|
import "github.com/Gleipnir-Technology/jet/internal/utils/is"
|
||||||
|
|
||||||
// Clause interface
|
// Clause interface
|
||||||
type Clause interface {
|
type Clause interface {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package jet
|
package jet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/3rdparty/snaker"
|
"github.com/Gleipnir-Technology/jet/internal/3rdparty/snaker"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -81,14 +81,14 @@ func (c *ColumnExpressionGeometryImpl) serialize(statement StatementType, out *S
|
||||||
out.WriteIdentifier(c.defaultAlias())
|
out.WriteIdentifier(c.defaultAlias())
|
||||||
out.WriteString(")")
|
out.WriteString(")")
|
||||||
} else {
|
} else {
|
||||||
out.WriteString("ST_AsGeoJSON(")
|
//out.WriteString("ST_AsGeoJSON(")
|
||||||
if c.tableName != "" && !contains(options, ShortName) {
|
if c.tableName != "" && !contains(options, ShortName) {
|
||||||
out.WriteIdentifier(c.tableName)
|
out.WriteIdentifier(c.tableName)
|
||||||
out.WriteByte('.')
|
out.WriteByte('.')
|
||||||
}
|
}
|
||||||
|
|
||||||
out.WriteIdentifier(c.name)
|
out.WriteIdentifier(c.name)
|
||||||
out.WriteString(")")
|
//out.WriteString(")")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
package jet
|
package jet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/3rdparty/snaker"
|
"github.com/Gleipnir-Technology/jet/internal/3rdparty/snaker"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ func (q QueryInfo) Caller() (file string, line int, function string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
funcDetails := runtime.FuncForPC(pc)
|
funcDetails := runtime.FuncForPC(pc)
|
||||||
if !strings.Contains(funcDetails.Name(), "github.com/go-jet/jet/v2/internal") {
|
if !strings.Contains(funcDetails.Name(), "github.com/Gleipnir-Technology/jet/internal") {
|
||||||
function = funcDetails.Name()
|
function = funcDetails.Name()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"database/sql/driver"
|
"database/sql/driver"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/go-jet/jet/v2/internal/3rdparty/pq"
|
"github.com/Gleipnir-Technology/jet/internal/3rdparty/pq"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/is"
|
"github.com/Gleipnir-Technology/jet/internal/utils/is"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package jet
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"github.com/go-jet/jet/v2/qrm"
|
"github.com/Gleipnir-Technology/jet/qrm"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package jet
|
package jet
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/utils/is"
|
import "github.com/Gleipnir-Technology/jet/internal/utils/is"
|
||||||
|
|
||||||
// SerializerTable interface
|
// SerializerTable interface
|
||||||
type SerializerTable interface {
|
type SerializerTable interface {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/utils/dbidentifier"
|
"github.com/Gleipnir-Technology/jet/internal/utils/dbidentifier"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/must"
|
"github.com/Gleipnir-Technology/jet/internal/utils/must"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SerializeClauseList func
|
// SerializeClauseList func
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/throw"
|
"github.com/Gleipnir-Technology/jet/internal/utils/throw"
|
||||||
"github.com/go-jet/jet/v2/qrm"
|
"github.com/Gleipnir-Technology/jet/qrm"
|
||||||
"github.com/go-jet/jet/v2/stmtcache"
|
"github.com/Gleipnir-Technology/jet/stmtcache"
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package testutils
|
package testutils
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/utils/throw"
|
"github.com/Gleipnir-Technology/jet/internal/utils/throw"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package datetime
|
package datetime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//"github.com/go-jet/jet/v2/internal/utils/min"
|
//"github.com/Gleipnir-Technology/jet/internal/utils/min"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package dbidentifier
|
package dbidentifier
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/3rdparty/snaker"
|
"github.com/Gleipnir-Technology/jet/internal/3rdparty/snaker"
|
||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package errfmt
|
package errfmt
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/utils/is"
|
"github.com/Gleipnir-Technology/jet/internal/utils/is"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package must
|
package must
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/utils/is"
|
"github.com/Gleipnir-Technology/jet/internal/utils/is"
|
||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package mysql
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CAST function converts an expr (of any type) into later specified datatype.
|
// CAST function converts an expr (of any type) into later specified datatype.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Column is common column interface for all types of columns.
|
// Column is common column interface for all types of columns.
|
||||||
type Column = jet.ColumnExpression
|
type Column = jet.ColumnExpression
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// DeleteStatement is interface for MySQL DELETE statement
|
// DeleteStatement is interface for MySQL DELETE statement
|
||||||
type DeleteStatement interface {
|
type DeleteStatement interface {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Dialect is implementation of MySQL dialect for SQL Builder serialization.
|
// Dialect is implementation of MySQL dialect for SQL Builder serialization.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Expression is common interface for all expressions.
|
// Expression is common interface for all expressions.
|
||||||
// Can be Bool, Int, Float, String, Date, Time or Timestamp expressions.
|
// Can be Bool, Int, Float, String, Date, Time or Timestamp expressions.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// This functions can be used, instead of its method counterparts, to have a better indentation of a complex condition
|
// This functions can be used, instead of its method counterparts, to have a better indentation of a complex condition
|
||||||
// in the Go code and in the generated SQL.
|
// in the Go code and in the generated SQL.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// InsertStatement is interface for SQL INSERT statements
|
// InsertStatement is interface for SQL INSERT statements
|
||||||
type InsertStatement interface {
|
type InsertStatement interface {
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/utils/datetime"
|
"github.com/Gleipnir-Technology/jet/internal/utils/datetime"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type unitType string
|
type unitType string
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// LATERAL derived tables constructor from select statement
|
// LATERAL derived tables constructor from select statement
|
||||||
func LATERAL(selectStmt SelectStatement) lateralImpl {
|
func LATERAL(selectStmt SelectStatement) lateralImpl {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package mysql
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Keywords
|
// Keywords
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// LockStatement is interface for MySQL LOCK tables
|
// LockStatement is interface for MySQL LOCK tables
|
||||||
type LockStatement interface {
|
type LockStatement interface {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// NOT returns negation of bool expression result
|
// NOT returns negation of bool expression result
|
||||||
var NOT = jet.NOT
|
var NOT = jet.NOT
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package mysql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// OptimizerHint provides a way to optimize query execution per-statement basis
|
// OptimizerHint provides a way to optimize query execution per-statement basis
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SelectJsonStatement is an interface for MySQL statements that generate JSON on the server.
|
// SelectJsonStatement is an interface for MySQL statements that generate JSON on the server.
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RowLock is interface for SELECT statement row lock types
|
// RowLock is interface for SELECT statement row lock types
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/testutils"
|
"github.com/Gleipnir-Technology/jet/internal/testutils"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// SelectTable is interface for MySQL sub-queries
|
// SelectTable is interface for MySQL sub-queries
|
||||||
type SelectTable interface {
|
type SelectTable interface {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// UNION effectively appends the result of sub-queries(select statements) into single query.
|
// UNION effectively appends the result of sub-queries(select statements) into single query.
|
||||||
// It eliminates duplicate rows from its result.
|
// It eliminates duplicate rows from its result.
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RawStatement creates new sql statements from raw query and optional map of named arguments
|
// RawStatement creates new sql statements from raw query and optional map of named arguments
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Table is interface for MySQL tables
|
// Table is interface for MySQL tables
|
||||||
type Table interface {
|
type Table interface {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Statement is common interface for all statements(SELECT, INSERT, UPDATE, DELETE, LOCK)
|
// Statement is common interface for all statements(SELECT, INSERT, UPDATE, DELETE, LOCK)
|
||||||
type Statement = jet.Statement
|
type Statement = jet.Statement
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// UpdateStatement is interface of SQL UPDATE statement
|
// UpdateStatement is interface of SQL UPDATE statement
|
||||||
type UpdateStatement interface {
|
type UpdateStatement interface {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
"github.com/go-jet/jet/v2/internal/testutils"
|
"github.com/Gleipnir-Technology/jet/internal/testutils"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
type values struct {
|
type values struct {
|
||||||
jet.Values
|
jet.Values
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// CommonTableExpression defines set of interface methods for postgres CTEs
|
// CommonTableExpression defines set of interface methods for postgres CTEs
|
||||||
type CommonTableExpression interface {
|
type CommonTableExpression interface {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Interfaces for different postgres array column types
|
// Interfaces for different postgres array column types
|
||||||
type (
|
type (
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CAST function converts an expr (of any type) into later specified datatype.
|
// CAST function converts an expr (of any type) into later specified datatype.
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/is"
|
"github.com/Gleipnir-Technology/jet/internal/utils/is"
|
||||||
)
|
)
|
||||||
|
|
||||||
type onConflict interface {
|
type onConflict interface {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Column is common column interface for all types of columns.
|
// Column is common column interface for all types of columns.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
type conflictAction interface {
|
type conflictAction interface {
|
||||||
jet.Serializer
|
jet.Serializer
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// DeleteStatement is interface for PostgreSQL DELETE statement
|
// DeleteStatement is interface for PostgreSQL DELETE statement
|
||||||
type DeleteStatement interface {
|
type DeleteStatement interface {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Dialect is implementation of postgres dialect for SQL Builder serialisation.
|
// Dialect is implementation of postgres dialect for SQL Builder serialisation.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Expression is a common interface for all expressions.
|
// Expression is a common interface for all expressions.
|
||||||
// Can be Bool, Int, Float, String, Date, Time, Timez, Timestamp or Timestampz expressions.
|
// Can be Bool, Int, Float, String, Date, Time, Timez, Timestamp or Timestampz expressions.
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This functions can be used, instead of its method counterparts, to have a better indentation of a complex condition
|
// This functions can be used, instead of its method counterparts, to have a better indentation of a complex condition
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// InsertStatement is interface for SQL INSERT statements
|
// InsertStatement is interface for SQL INSERT statements
|
||||||
type InsertStatement interface {
|
type InsertStatement interface {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/datetime"
|
"github.com/Gleipnir-Technology/jet/internal/utils/datetime"
|
||||||
)
|
)
|
||||||
|
|
||||||
type quantityAndUnit = float64
|
type quantityAndUnit = float64
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DEFAULT is jet equivalent of SQL DEFAULT
|
// DEFAULT is jet equivalent of SQL DEFAULT
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// LATERAL derived tables constructor from select statement
|
// LATERAL derived tables constructor from select statement
|
||||||
func LATERAL(selectStmt SelectStatement) lateralImpl {
|
func LATERAL(selectStmt SelectStatement) lateralImpl {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
"github.com/lib/pq"
|
"github.com/lib/pq"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Bool is boolean literal constructor
|
// Bool is boolean literal constructor
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// TableLockMode is a type of possible SQL table lock
|
// TableLockMode is a type of possible SQL table lock
|
||||||
type TableLockMode string
|
type TableLockMode string
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// NOT returns negation of bool expression result
|
// NOT returns negation of bool expression result
|
||||||
var NOT = jet.NOT
|
var NOT = jet.NOT
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package postgres
|
||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RowLock is interface for SELECT statement row lock types
|
// RowLock is interface for SELECT statement row lock types
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// SelectTable is interface for postgres temporary tables like sub-queries, VALUES, CTEs etc...
|
// SelectTable is interface for postgres temporary tables like sub-queries, VALUES, CTEs etc...
|
||||||
type SelectTable interface {
|
type SelectTable interface {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// UNION effectively appends the result of sub-queries(select statements) into single query.
|
// UNION effectively appends the result of sub-queries(select statements) into single query.
|
||||||
// It eliminates duplicate rows from its result.
|
// It eliminates duplicate rows from its result.
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RawStatement creates new sql statements from raw query and optional map of named arguments
|
// RawStatement creates new sql statements from raw query and optional map of named arguments
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Table is interface for MySQL tables
|
// Table is interface for MySQL tables
|
||||||
type Table interface {
|
type Table interface {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Statement is common interface for all statements(SELECT, INSERT, UPDATE, DELETE, LOCK)
|
// Statement is common interface for all statements(SELECT, INSERT, UPDATE, DELETE, LOCK)
|
||||||
type Statement = jet.Statement
|
type Statement = jet.Statement
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UpdateStatement is interface of SQL UPDATE statement
|
// UpdateStatement is interface of SQL UPDATE statement
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package postgres
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
"github.com/go-jet/jet/v2/internal/testutils"
|
"github.com/Gleipnir-Technology/jet/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
var table1Col1 = IntegerColumn("col1")
|
var table1Col1 = IntegerColumn("col1")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
type values struct {
|
type values struct {
|
||||||
jet.Values
|
jet.Values
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package postgres
|
package postgres
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// CommonTableExpression defines set of interface methods for postgres CTEs
|
// CommonTableExpression defines set of interface methods for postgres CTEs
|
||||||
type CommonTableExpression interface {
|
type CommonTableExpression interface {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"database/sql/driver"
|
"database/sql/driver"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/datetime"
|
"github.com/Gleipnir-Technology/jet/internal/utils/datetime"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/utils/must"
|
"github.com/Gleipnir-Technology/jet/internal/utils/must"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config holds the configuration settings for QRM scanning behavior.
|
// Config holds the configuration settings for QRM scanning behavior.
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-jet/jet/v2/internal/utils/must"
|
"github.com/Gleipnir-Technology/jet/internal/utils/must"
|
||||||
"github.com/go-jet/jet/v2/internal/utils/strslice"
|
"github.com/Gleipnir-Technology/jet/internal/utils/strslice"
|
||||||
"github.com/go-jet/jet/v2/qrm/internal"
|
"github.com/Gleipnir-Technology/jet/qrm/internal"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package sqlite
|
package sqlite
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CAST function converts an expr (of any type) into later specified datatype.
|
// CAST function converts an expr (of any type) into later specified datatype.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package sqlite
|
package sqlite
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Column is common column interface for all types of columns.
|
// Column is common column interface for all types of columns.
|
||||||
type Column = jet.ColumnExpression
|
type Column = jet.ColumnExpression
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package sqlite
|
package sqlite
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// DeleteStatement is interface for MySQL DELETE statement
|
// DeleteStatement is interface for MySQL DELETE statement
|
||||||
type DeleteStatement interface {
|
type DeleteStatement interface {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package sqlite
|
||||||
import (
|
import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/go-jet/jet/v2/internal/jet"
|
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Dialect is implementation of SQL Builder for SQLite databases.
|
// Dialect is implementation of SQL Builder for SQLite databases.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package sqlite
|
package sqlite
|
||||||
|
|
||||||
import "github.com/go-jet/jet/v2/internal/jet"
|
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||||
|
|
||||||
// Expression is common interface for all expressions.
|
// Expression is common interface for all expressions.
|
||||||
// Can be Bool, Int, Float, String, Date, Time or Timestamp expressions.
|
// Can be Bool, Int, Float, String, Date, Time or Timestamp expressions.
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue