Move database logic into separate subdirectory
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.
This commit is contained in:
parent
338f90708e
commit
41587c3694
333 changed files with 206 additions and 200 deletions
|
|
@ -1,157 +0,0 @@
|
|||
// 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 FieldseekerSyncs = Table[
|
||||
fieldseekerSyncColumns,
|
||||
fieldseekerSyncIndexes,
|
||||
fieldseekerSyncForeignKeys,
|
||||
fieldseekerSyncUniques,
|
||||
fieldseekerSyncChecks,
|
||||
]{
|
||||
Schema: "",
|
||||
Name: "fieldseeker_sync",
|
||||
Columns: fieldseekerSyncColumns{
|
||||
ID: column{
|
||||
Name: "id",
|
||||
DBType: "integer",
|
||||
Default: "nextval('fieldseeker_sync_id_seq'::regclass)",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Created: column{
|
||||
Name: "created",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "CURRENT_TIMESTAMP",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RecordsCreated: column{
|
||||
Name: "records_created",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RecordsUpdated: column{
|
||||
Name: "records_updated",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RecordsUnchanged: column{
|
||||
Name: "records_unchanged",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
OrganizationID: column{
|
||||
Name: "organization_id",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: fieldseekerSyncIndexes{
|
||||
FieldseekerSyncPkey: index{
|
||||
Type: "btree",
|
||||
Name: "fieldseeker_sync_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: "fieldseeker_sync_pkey",
|
||||
Columns: []string{"id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: fieldseekerSyncForeignKeys{
|
||||
FieldseekerSyncFieldseekerSyncOrganizationIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "fieldseeker_sync.fieldseeker_sync_organization_id_fkey",
|
||||
Columns: []string{"organization_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "organization",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type fieldseekerSyncColumns struct {
|
||||
ID column
|
||||
Created column
|
||||
RecordsCreated column
|
||||
RecordsUpdated column
|
||||
RecordsUnchanged column
|
||||
OrganizationID column
|
||||
}
|
||||
|
||||
func (c fieldseekerSyncColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.ID, c.Created, c.RecordsCreated, c.RecordsUpdated, c.RecordsUnchanged, c.OrganizationID,
|
||||
}
|
||||
}
|
||||
|
||||
type fieldseekerSyncIndexes struct {
|
||||
FieldseekerSyncPkey index
|
||||
}
|
||||
|
||||
func (i fieldseekerSyncIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.FieldseekerSyncPkey,
|
||||
}
|
||||
}
|
||||
|
||||
type fieldseekerSyncForeignKeys struct {
|
||||
FieldseekerSyncFieldseekerSyncOrganizationIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f fieldseekerSyncForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.FieldseekerSyncFieldseekerSyncOrganizationIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type fieldseekerSyncUniques struct{}
|
||||
|
||||
func (u fieldseekerSyncUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type fieldseekerSyncChecks struct{}
|
||||
|
||||
func (c fieldseekerSyncChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue