This requires a bunch of changes since the types on these tables are much closer to the underlying types of the Fieldseeker data we are getting back from the API. I now need to use proper UUID types everywhere, which means I had to modify the bob gen config to consistently use google UUID, my UUID library of choice. I also had to add the organization_id to all the fieldseeker tables since we rely on them existing for some of our compound queries. There were some changes to the API type signatures to get things to build. I may yet regret those.
122 lines
2.5 KiB
Go
122 lines
2.5 KiB
Go
// Code generated by BobGen psql v0.0.4-0.20251216163753-8e325b7c773a+dirty. DO NOT EDIT.
|
|
// This file is meant to be re-generated in place and/or deleted at any time.
|
|
|
|
package dbinfo
|
|
|
|
var GeometryColumns = Table[
|
|
geometryColumnColumns,
|
|
geometryColumnIndexes,
|
|
geometryColumnForeignKeys,
|
|
geometryColumnUniques,
|
|
geometryColumnChecks,
|
|
]{
|
|
Schema: "",
|
|
Name: "geometry_columns",
|
|
Columns: geometryColumnColumns{
|
|
FTableCatalog: column{
|
|
Name: "f_table_catalog",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
FTableSchema: column{
|
|
Name: "f_table_schema",
|
|
DBType: "name",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
FTableName: column{
|
|
Name: "f_table_name",
|
|
DBType: "name",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
FGeometryColumn: column{
|
|
Name: "f_geometry_column",
|
|
DBType: "name",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
CoordDimension: column{
|
|
Name: "coord_dimension",
|
|
DBType: "integer",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Srid: column{
|
|
Name: "srid",
|
|
DBType: "integer",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Type: column{
|
|
Name: "type",
|
|
DBType: "character varying",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type geometryColumnColumns struct {
|
|
FTableCatalog column
|
|
FTableSchema column
|
|
FTableName column
|
|
FGeometryColumn column
|
|
CoordDimension column
|
|
Srid column
|
|
Type column
|
|
}
|
|
|
|
func (c geometryColumnColumns) AsSlice() []column {
|
|
return []column{
|
|
c.FTableCatalog, c.FTableSchema, c.FTableName, c.FGeometryColumn, c.CoordDimension, c.Srid, c.Type,
|
|
}
|
|
}
|
|
|
|
type geometryColumnIndexes struct{}
|
|
|
|
func (i geometryColumnIndexes) AsSlice() []index {
|
|
return []index{}
|
|
}
|
|
|
|
type geometryColumnForeignKeys struct{}
|
|
|
|
func (f geometryColumnForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{}
|
|
}
|
|
|
|
type geometryColumnUniques struct{}
|
|
|
|
func (u geometryColumnUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type geometryColumnChecks struct{}
|
|
|
|
func (c geometryColumnChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|