nidus-sync/db/dbinfo/raster_overviews.bob.go
Eli Ribble 1395e3d3ac Remove old FieldSeeker tables, use v2 generated tables.
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.
2025-12-24 17:58:08 -07:00

142 lines
3 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 RasterOverviews = Table[
rasterOverviewColumns,
rasterOverviewIndexes,
rasterOverviewForeignKeys,
rasterOverviewUniques,
rasterOverviewChecks,
]{
Schema: "",
Name: "raster_overviews",
Columns: rasterOverviewColumns{
OTableCatalog: column{
Name: "o_table_catalog",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
OTableSchema: column{
Name: "o_table_schema",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
OTableName: column{
Name: "o_table_name",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ORasterColumn: column{
Name: "o_raster_column",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RTableCatalog: column{
Name: "r_table_catalog",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RTableSchema: column{
Name: "r_table_schema",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RTableName: column{
Name: "r_table_name",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RRasterColumn: column{
Name: "r_raster_column",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
OverviewFactor: column{
Name: "overview_factor",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Comment: "",
}
type rasterOverviewColumns struct {
OTableCatalog column
OTableSchema column
OTableName column
ORasterColumn column
RTableCatalog column
RTableSchema column
RTableName column
RRasterColumn column
OverviewFactor column
}
func (c rasterOverviewColumns) AsSlice() []column {
return []column{
c.OTableCatalog, c.OTableSchema, c.OTableName, c.ORasterColumn, c.RTableCatalog, c.RTableSchema, c.RTableName, c.RRasterColumn, c.OverviewFactor,
}
}
type rasterOverviewIndexes struct{}
func (i rasterOverviewIndexes) AsSlice() []index {
return []index{}
}
type rasterOverviewForeignKeys struct{}
func (f rasterOverviewForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type rasterOverviewUniques struct{}
func (u rasterOverviewUniques) AsSlice() []constraint {
return []constraint{}
}
type rasterOverviewChecks struct{}
func (c rasterOverviewChecks) AsSlice() []check {
return []check{}
}