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:
Eli Ribble 2025-11-24 18:08:24 +00:00
parent 338f90708e
commit 41587c3694
No known key found for this signature in database
333 changed files with 206 additions and 200 deletions

View file

@ -1,142 +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
var RasterOverviews = Table[
rasterOverviewColumns,
rasterOverviewIndexes,
rasterOverviewForeignKeys,
rasterOverviewUniques,
rasterOverviewChecks,
]{
Schema: "",
Name: "raster_overviews",
Columns: rasterOverviewColumns{
OTableCatalog: column{
Name: "o_table_catalog",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
OTableSchema: column{
Name: "o_table_schema",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
OTableName: column{
Name: "o_table_name",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ORasterColumn: column{
Name: "o_raster_column",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RTableCatalog: column{
Name: "r_table_catalog",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RTableSchema: column{
Name: "r_table_schema",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RTableName: column{
Name: "r_table_name",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RRasterColumn: column{
Name: "r_raster_column",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
OverviewFactor: column{
Name: "overview_factor",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Comment: "",
}
type rasterOverviewColumns struct {
OTableCatalog column
OTableSchema column
OTableName column
ORasterColumn column
RTableCatalog column
RTableSchema column
RTableName column
RRasterColumn column
OverviewFactor column
}
func (c rasterOverviewColumns) AsSlice() []column {
return []column{
c.OTableCatalog, c.OTableSchema, c.OTableName, c.ORasterColumn, c.RTableCatalog, c.RTableSchema, c.RTableName, c.RRasterColumn, c.OverviewFactor,
}
}
type rasterOverviewIndexes struct{}
func (i rasterOverviewIndexes) AsSlice() []index {
return []index{}
}
type rasterOverviewForeignKeys struct{}
func (f rasterOverviewForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type rasterOverviewUniques struct{}
func (u rasterOverviewUniques) AsSlice() []constraint {
return []constraint{}
}
type rasterOverviewChecks struct{}
func (c rasterOverviewChecks) AsSlice() []check {
return []check{}
}