Port all of the arcgis schema to using jet

Have not tested anything at this point, it just compiles.
This commit is contained in:
Eli Ribble 2026-05-01 17:28:33 +00:00
parent 89ed2003fa
commit bab3200b6c
No known key found for this signature in database
52 changed files with 479 additions and 13585 deletions

View file

@ -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
})