I had to remove the submodule because of the go bug at https://github.com/golang/go/issues/77196 I found the bug because of a bug in bob itself https://github.com/stephenafamo/bob/issues/610 This was because I'm trying to save data about the Arcgis user for use in determining if I can set up hooks to avoid the polling for data changes.
122 lines
2.4 KiB
Go
122 lines
2.4 KiB
Go
// Code generated by BobGen psql v0.42.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 GooseDBVersions = Table[
|
|
gooseDBVersionColumns,
|
|
gooseDBVersionIndexes,
|
|
gooseDBVersionForeignKeys,
|
|
gooseDBVersionUniques,
|
|
gooseDBVersionChecks,
|
|
]{
|
|
Schema: "",
|
|
Name: "goose_db_version",
|
|
Columns: gooseDBVersionColumns{
|
|
ID: column{
|
|
Name: "id",
|
|
DBType: "integer",
|
|
Default: "IDENTITY",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
VersionID: column{
|
|
Name: "version_id",
|
|
DBType: "bigint",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
IsApplied: column{
|
|
Name: "is_applied",
|
|
DBType: "boolean",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
Tstamp: column{
|
|
Name: "tstamp",
|
|
DBType: "timestamp without time zone",
|
|
Default: "now()",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: gooseDBVersionIndexes{
|
|
GooseDBVersionPkey: index{
|
|
Type: "btree",
|
|
Name: "goose_db_version_pkey",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "id",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
},
|
|
PrimaryKey: &constraint{
|
|
Name: "goose_db_version_pkey",
|
|
Columns: []string{"id"},
|
|
Comment: "",
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type gooseDBVersionColumns struct {
|
|
ID column
|
|
VersionID column
|
|
IsApplied column
|
|
Tstamp column
|
|
}
|
|
|
|
func (c gooseDBVersionColumns) AsSlice() []column {
|
|
return []column{
|
|
c.ID, c.VersionID, c.IsApplied, c.Tstamp,
|
|
}
|
|
}
|
|
|
|
type gooseDBVersionIndexes struct {
|
|
GooseDBVersionPkey index
|
|
}
|
|
|
|
func (i gooseDBVersionIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.GooseDBVersionPkey,
|
|
}
|
|
}
|
|
|
|
type gooseDBVersionForeignKeys struct{}
|
|
|
|
func (f gooseDBVersionForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{}
|
|
}
|
|
|
|
type gooseDBVersionUniques struct{}
|
|
|
|
func (u gooseDBVersionUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type gooseDBVersionChecks struct{}
|
|
|
|
func (c gooseDBVersionChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|