summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-pg/pg/v10/orm/table_params.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-pg/pg/v10/orm/table_params.go')
-rw-r--r--vendor/github.com/go-pg/pg/v10/orm/table_params.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/github.com/go-pg/pg/v10/orm/table_params.go b/vendor/github.com/go-pg/pg/v10/orm/table_params.go
deleted file mode 100644
index 46d8e064a..000000000
--- a/vendor/github.com/go-pg/pg/v10/orm/table_params.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package orm
-
-import "reflect"
-
-type tableParams struct {
- table *Table
- strct reflect.Value
-}
-
-func newTableParams(strct interface{}) (*tableParams, bool) {
- v := reflect.ValueOf(strct)
- if !v.IsValid() {
- return nil, false
- }
-
- v = reflect.Indirect(v)
- if v.Kind() != reflect.Struct {
- return nil, false
- }
-
- return &tableParams{
- table: GetTable(v.Type()),
- strct: v,
- }, true
-}
-
-func (m *tableParams) AppendParam(fmter QueryFormatter, b []byte, name string) ([]byte, bool) {
- return m.table.AppendParam(b, m.strct, name)
-}