122 lines
2.5 KiB
Go
122 lines
2.5 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 ArcgisFeatureServices = Table[
|
|
arcgisFeatureServiceColumns,
|
|
arcgisFeatureServiceIndexes,
|
|
arcgisFeatureServiceForeignKeys,
|
|
arcgisFeatureServiceUniques,
|
|
arcgisFeatureServiceChecks,
|
|
]{
|
|
Schema: "arcgis",
|
|
Name: "feature_service",
|
|
Columns: arcgisFeatureServiceColumns{
|
|
Extent: column{
|
|
Name: "extent",
|
|
DBType: "box2d",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
ItemID: column{
|
|
Name: "item_id",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
SpatialReference: column{
|
|
Name: "spatial_reference",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
URL: column{
|
|
Name: "url",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: arcgisFeatureServiceIndexes{
|
|
FeatureServicePkey: index{
|
|
Type: "btree",
|
|
Name: "feature_service_pkey",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "item_id",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
},
|
|
PrimaryKey: &constraint{
|
|
Name: "feature_service_pkey",
|
|
Columns: []string{"item_id"},
|
|
Comment: "",
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type arcgisFeatureServiceColumns struct {
|
|
Extent column
|
|
ItemID column
|
|
SpatialReference column
|
|
URL column
|
|
}
|
|
|
|
func (c arcgisFeatureServiceColumns) AsSlice() []column {
|
|
return []column{
|
|
c.Extent, c.ItemID, c.SpatialReference, c.URL,
|
|
}
|
|
}
|
|
|
|
type arcgisFeatureServiceIndexes struct {
|
|
FeatureServicePkey index
|
|
}
|
|
|
|
func (i arcgisFeatureServiceIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.FeatureServicePkey,
|
|
}
|
|
}
|
|
|
|
type arcgisFeatureServiceForeignKeys struct{}
|
|
|
|
func (f arcgisFeatureServiceForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{}
|
|
}
|
|
|
|
type arcgisFeatureServiceUniques struct{}
|
|
|
|
func (u arcgisFeatureServiceUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type arcgisFeatureServiceChecks struct{}
|
|
|
|
func (c arcgisFeatureServiceChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|