nidus-sync/db/dbinfo/raster_columns.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

222 lines
4.6 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 RasterColumns = Table[
rasterColumnColumns,
rasterColumnIndexes,
rasterColumnForeignKeys,
rasterColumnUniques,
rasterColumnChecks,
]{
Schema: "",
Name: "raster_columns",
Columns: rasterColumnColumns{
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,
},
Srid: column{
Name: "srid",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ScaleX: column{
Name: "scale_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ScaleY: column{
Name: "scale_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
BlocksizeX: column{
Name: "blocksize_x",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
BlocksizeY: column{
Name: "blocksize_y",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
SameAlignment: column{
Name: "same_alignment",
DBType: "boolean",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RegularBlocking: column{
Name: "regular_blocking",
DBType: "boolean",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
NumBands: column{
Name: "num_bands",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
PixelTypes: column{
Name: "pixel_types",
DBType: "text[]",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
NodataValues: column{
Name: "nodata_values",
DBType: "double precision[]",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
OutDB: column{
Name: "out_db",
DBType: "boolean[]",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Extent: column{
Name: "extent",
DBType: "geometry",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
SpatialIndex: column{
Name: "spatial_index",
DBType: "boolean",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Comment: "",
}
type rasterColumnColumns struct {
RTableCatalog column
RTableSchema column
RTableName column
RRasterColumn column
Srid column
ScaleX column
ScaleY column
BlocksizeX column
BlocksizeY column
SameAlignment column
RegularBlocking column
NumBands column
PixelTypes column
NodataValues column
OutDB column
Extent column
SpatialIndex column
}
func (c rasterColumnColumns) AsSlice() []column {
return []column{
c.RTableCatalog, c.RTableSchema, c.RTableName, c.RRasterColumn, c.Srid, c.ScaleX, c.ScaleY, c.BlocksizeX, c.BlocksizeY, c.SameAlignment, c.RegularBlocking, c.NumBands, c.PixelTypes, c.NodataValues, c.OutDB, c.Extent, c.SpatialIndex,
}
}
type rasterColumnIndexes struct{}
func (i rasterColumnIndexes) AsSlice() []index {
return []index{}
}
type rasterColumnForeignKeys struct{}
func (f rasterColumnForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type rasterColumnUniques struct{}
func (u rasterColumnUniques) AsSlice() []constraint {
return []constraint{}
}
type rasterColumnChecks struct{}
func (c rasterColumnChecks) AsSlice() []check {
return []check{}
}