nidus-sync/db/dbinfo/arcgis.layer.bob.go

132 lines
2.7 KiB
Go

// Code generated by BobGen psql v0.42.5. 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 ArcgisLayers = Table[
arcgisLayerColumns,
arcgisLayerIndexes,
arcgisLayerForeignKeys,
arcgisLayerUniques,
arcgisLayerChecks,
]{
Schema: "arcgis",
Name: "layer",
Columns: arcgisLayerColumns{
Extent: column{
Name: "extent",
DBType: "box2d",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
FeatureServiceItemID: column{
Name: "feature_service_item_id",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Index: column{
Name: "index_",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: arcgisLayerIndexes{
LayerPkey: index{
Type: "btree",
Name: "layer_pkey",
Columns: []indexColumn{
{
Name: "feature_service_item_id",
Desc: null.FromCond(false, true),
IsExpression: false,
},
{
Name: "index_",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false, false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "layer_pkey",
Columns: []string{"feature_service_item_id", "index_"},
Comment: "",
},
ForeignKeys: arcgisLayerForeignKeys{
ArcgisLayerLayerFeatureServiceItemIDFkey: foreignKey{
constraint: constraint{
Name: "arcgis.layer.layer_feature_service_item_id_fkey",
Columns: []string{"feature_service_item_id"},
Comment: "",
},
ForeignTable: "arcgis.feature_service",
ForeignColumns: []string{"item_id"},
},
},
Comment: "",
}
type arcgisLayerColumns struct {
Extent column
FeatureServiceItemID column
Index column
}
func (c arcgisLayerColumns) AsSlice() []column {
return []column{
c.Extent, c.FeatureServiceItemID, c.Index,
}
}
type arcgisLayerIndexes struct {
LayerPkey index
}
func (i arcgisLayerIndexes) AsSlice() []index {
return []index{
i.LayerPkey,
}
}
type arcgisLayerForeignKeys struct {
ArcgisLayerLayerFeatureServiceItemIDFkey foreignKey
}
func (f arcgisLayerForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.ArcgisLayerLayerFeatureServiceItemIDFkey,
}
}
type arcgisLayerUniques struct{}
func (u arcgisLayerUniques) AsSlice() []constraint {
return []constraint{}
}
type arcgisLayerChecks struct{}
func (c arcgisLayerChecks) AsSlice() []check {
return []check{}
}