Switch to hosting on source.gleipnir.technology
All checks were successful
/ test (push) Successful in 3s
All checks were successful
/ test (push) Successful in 3s
This commit is contained in:
parent
30cc7321c5
commit
34e5dcbb17
172 changed files with 493 additions and 490 deletions
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// Interfaces for different postgres array column types
|
||||
type (
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
)
|
||||
|
||||
// CAST function converts an expr (of any type) into later specified datatype.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
package postgres
|
||||
|
||||
import (
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"github.com/Gleipnir-Technology/jet/internal/utils/is"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/utils/is"
|
||||
)
|
||||
|
||||
type onConflict interface {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package postgres
|
||||
|
||||
import (
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
)
|
||||
|
||||
// Column is common column interface for all types of columns.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
type conflictAction interface {
|
||||
jet.Serializer
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// DeleteStatement is interface for PostgreSQL DELETE statement
|
||||
type DeleteStatement interface {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
)
|
||||
|
||||
// Dialect is implementation of postgres dialect for SQL Builder serialisation.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// Expression is a common interface for all expressions.
|
||||
// Can be Bool, Int, Float, String, Date, Time, Timez, Timestamp or Timestampz expressions.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package postgres
|
||||
|
||||
import (
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// InsertStatement is interface for SQL INSERT statements
|
||||
type InsertStatement interface {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"github.com/Gleipnir-Technology/jet/internal/utils/datetime"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/utils/datetime"
|
||||
)
|
||||
|
||||
type quantityAndUnit = float64
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
const (
|
||||
// DEFAULT is jet equivalent of SQL DEFAULT
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// LATERAL derived tables constructor from select statement
|
||||
func LATERAL(selectStmt SelectStatement) lateralImpl {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/lib/pq"
|
||||
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
)
|
||||
|
||||
// Bool is boolean literal constructor
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// TableLockMode is a type of possible SQL table lock
|
||||
type TableLockMode string
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// NOT returns negation of bool expression result
|
||||
var NOT = jet.NOT
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package postgres
|
||||
|
||||
import (
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package postgres
|
|||
import (
|
||||
"math"
|
||||
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
)
|
||||
|
||||
// RowLock is interface for SELECT statement row lock types
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// SelectTable is interface for postgres temporary tables like sub-queries, VALUES, CTEs etc...
|
||||
type SelectTable interface {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// UNION effectively appends the result of sub-queries(select statements) into single query.
|
||||
// It eliminates duplicate rows from its result.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package postgres
|
||||
|
||||
import (
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
)
|
||||
|
||||
// RawStatement creates new sql statements from raw query and optional map of named arguments
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// Table is interface for MySQL tables
|
||||
type Table interface {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// Statement is common interface for all statements(SELECT, INSERT, UPDATE, DELETE, LOCK)
|
||||
type Statement = jet.Statement
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package postgres
|
||||
|
||||
import (
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
)
|
||||
|
||||
// UpdateStatement is interface of SQL UPDATE statement
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ package postgres
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
"github.com/Gleipnir-Technology/jet/internal/testutils"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
"source.gleipnir.technology/Gleipnir/jet/internal/testutils"
|
||||
)
|
||||
|
||||
var table1Col1 = IntegerColumn("col1")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
type values struct {
|
||||
jet.Values
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package postgres
|
||||
|
||||
import "github.com/Gleipnir-Technology/jet/internal/jet"
|
||||
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
||||
|
||||
// CommonTableExpression defines set of interface methods for postgres CTEs
|
||||
type CommonTableExpression interface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue