Port all of the arcgis schema to using jet
Have not tested anything at this point, it just compiles.
This commit is contained in:
parent
89ed2003fa
commit
bab3200b6c
52 changed files with 479 additions and 13585 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/Gleipnir-Technology/nidus-sync/db/types"
|
||||
"github.com/go-jet/jet/v2/generator/metadata"
|
||||
genpostgres "github.com/go-jet/jet/v2/generator/postgres"
|
||||
"github.com/go-jet/jet/v2/generator/template"
|
||||
|
|
@ -12,11 +13,6 @@ import (
|
|||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
||||
type Box2D struct {
|
||||
X float64
|
||||
Y float64
|
||||
}
|
||||
|
||||
var schemas []string = []string{
|
||||
"arcgis",
|
||||
"stadia",
|
||||
|
|
@ -29,7 +25,7 @@ func customTemplate() template.Template {
|
|||
defaultTableModelField := template.DefaultTableModelField(column)
|
||||
//log.Printf("'%s' '%s' '%s'", table.Name, column.Name, column.DataType.Name)
|
||||
if column.Name == "extent" && column.DataType.Name == "box2d" {
|
||||
defaultTableModelField.Type = template.NewType(Box2D{})
|
||||
defaultTableModelField.Type = template.NewType(types.Box2D{})
|
||||
}
|
||||
return defaultTableModelField
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue