Postgres linter errors.

This commit is contained in:
go-jet 2019-08-17 14:49:35 +02:00
parent 46a3dc7dfb
commit ab6d85f886
20 changed files with 310 additions and 29 deletions

View file

@ -2,6 +2,13 @@ package postgres
import "github.com/go-jet/jet/internal/jet"
// Table is interface for MySQL tables
type Table interface {
readableTable
writableTable
jet.SerializerTable
}
type readableTable interface {
// Generates a select query on the current tableName.
SELECT(projection Projection, projections ...Projection) SelectStatement
@ -35,18 +42,13 @@ type ReadableTable interface {
jet.Serializer
}
// WritableTable interface
type WritableTable interface {
jet.Table
writableTable
jet.Serializer
}
type Table interface {
readableTable
writableTable
jet.SerializerTable
}
type readableTableInterfaceImpl struct {
parent ReadableTable
}
@ -106,6 +108,7 @@ type table2Impl struct {
jet.TableImpl
}
// NewTable creates new table with schema Name, table Name and list of columns
func NewTable(schemaName, name string, columns ...jet.ColumnExpression) Table {
t := &table2Impl{