I'm trying to see if this speeds up builds a bit. May not without a module boundary, but for now it's nice organization to have as the program grows.
206 lines
4.5 KiB
Go
206 lines
4.5 KiB
Go
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
|
// This file is meant to be re-generated in place and/or deleted at any time.
|
|
|
|
package dbinfo
|
|
|
|
import "github.com/aarondl/opt/null"
|
|
|
|
var H3Aggregations = Table[
|
|
h3AggregationColumns,
|
|
h3AggregationIndexes,
|
|
h3AggregationForeignKeys,
|
|
h3AggregationUniques,
|
|
h3AggregationChecks,
|
|
]{
|
|
Schema: "",
|
|
Name: "h3_aggregation",
|
|
Columns: h3AggregationColumns{
|
|
ID: column{
|
|
Name: "id",
|
|
DBType: "integer",
|
|
Default: "nextval('h3_aggregation_id_seq'::regclass)",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Cell: column{
|
|
Name: "cell",
|
|
DBType: "h3index",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Count: column{
|
|
Name: "count_",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Geometry: column{
|
|
Name: "geometry",
|
|
DBType: "geometry",
|
|
Default: "NULL",
|
|
Comment: "",
|
|
Nullable: true,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
OrganizationID: column{
|
|
Name: "organization_id",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Resolution: column{
|
|
Name: "resolution",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Type: column{
|
|
Name: "type_",
|
|
DBType: "public.h3aggregationtype",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: h3AggregationIndexes{
|
|
H3AggregationPkey: index{
|
|
Type: "btree",
|
|
Name: "h3_aggregation_pkey",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "id",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
H3AggregationCellOrganizationIDTypeKey: index{
|
|
Type: "btree",
|
|
Name: "h3_aggregation_cell_organization_id_type__key",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "cell",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
{
|
|
Name: "organization_id",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
{
|
|
Name: "type_",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false, false, false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
},
|
|
PrimaryKey: &constraint{
|
|
Name: "h3_aggregation_pkey",
|
|
Columns: []string{"id"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: h3AggregationForeignKeys{
|
|
H3AggregationH3AggregationOrganizationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "h3_aggregation.h3_aggregation_organization_id_fkey",
|
|
Columns: []string{"organization_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "organization",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
Uniques: h3AggregationUniques{
|
|
H3AggregationCellOrganizationIDTypeKey: constraint{
|
|
Name: "h3_aggregation_cell_organization_id_type__key",
|
|
Columns: []string{"cell", "organization_id", "type_"},
|
|
Comment: "",
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type h3AggregationColumns struct {
|
|
ID column
|
|
Cell column
|
|
Count column
|
|
Geometry column
|
|
OrganizationID column
|
|
Resolution column
|
|
Type column
|
|
}
|
|
|
|
func (c h3AggregationColumns) AsSlice() []column {
|
|
return []column{
|
|
c.ID, c.Cell, c.Count, c.Geometry, c.OrganizationID, c.Resolution, c.Type,
|
|
}
|
|
}
|
|
|
|
type h3AggregationIndexes struct {
|
|
H3AggregationPkey index
|
|
H3AggregationCellOrganizationIDTypeKey index
|
|
}
|
|
|
|
func (i h3AggregationIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.H3AggregationPkey, i.H3AggregationCellOrganizationIDTypeKey,
|
|
}
|
|
}
|
|
|
|
type h3AggregationForeignKeys struct {
|
|
H3AggregationH3AggregationOrganizationIDFkey foreignKey
|
|
}
|
|
|
|
func (f h3AggregationForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.H3AggregationH3AggregationOrganizationIDFkey,
|
|
}
|
|
}
|
|
|
|
type h3AggregationUniques struct {
|
|
H3AggregationCellOrganizationIDTypeKey constraint
|
|
}
|
|
|
|
func (u h3AggregationUniques) AsSlice() []constraint {
|
|
return []constraint{
|
|
u.H3AggregationCellOrganizationIDTypeKey,
|
|
}
|
|
}
|
|
|
|
type h3AggregationChecks struct{}
|
|
|
|
func (c h3AggregationChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|