Add Dependencies info to README.md.

This commit is contained in:
go-jet 2019-07-04 17:54:15 +02:00
parent f34c5e7fe8
commit 55e8c3bbb1
10 changed files with 79 additions and 43 deletions

View file

@ -2,7 +2,7 @@ package postgres_metadata
import (
"database/sql"
"github.com/go-jet/jet/internal/util"
"github.com/go-jet/jet/internal/utils"
)
type TableInfo struct {
@ -58,7 +58,7 @@ func (t TableInfo) GetImports() []string {
}
func (t TableInfo) GoStructName() string {
return util.ToGoIdentifier(t.name) + "Table"
return utils.ToGoIdentifier(t.name) + "Table"
}
func GetTableInfo(db *sql.DB, dbName, schemaName, tableName string) (tableInfo TableInfo, err error) {