(core) Update golang dependencies
`` go get -u ./... go mod tidy ``` Fixed SQLite related code to fit latest changes in SQLite driver
This commit is contained in:
80
base/database/storage/sqlite/dbinfo/bob_types.bob.go
Normal file
80
base/database/storage/sqlite/dbinfo/bob_types.bob.go
Normal file
@@ -0,0 +1,80 @@
|
||||
// Code generated by BobGen sqlite 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"
|
||||
|
||||
type Table[Cols columns, Idxs indexes, FKs foreignKeys, U uniques, C checks] struct {
|
||||
Schema string
|
||||
Name string
|
||||
Columns Cols
|
||||
Indexes Idxs
|
||||
PrimaryKey *constraint
|
||||
ForeignKeys FKs
|
||||
Uniques U
|
||||
Checks C
|
||||
Comment string
|
||||
}
|
||||
|
||||
type columns interface {
|
||||
AsSlice() []column
|
||||
}
|
||||
|
||||
type column struct {
|
||||
Name string
|
||||
DBType string
|
||||
Default string
|
||||
Comment string
|
||||
Nullable bool
|
||||
Generated bool
|
||||
AutoIncr bool
|
||||
}
|
||||
|
||||
type indexes interface {
|
||||
AsSlice() []index
|
||||
}
|
||||
|
||||
type index struct {
|
||||
Type string
|
||||
Name string
|
||||
Columns []indexColumn
|
||||
Unique bool
|
||||
Comment string
|
||||
Partial bool
|
||||
}
|
||||
|
||||
type indexColumn struct {
|
||||
Name string
|
||||
Desc null.Val[bool]
|
||||
IsExpression bool
|
||||
}
|
||||
|
||||
type constraint struct {
|
||||
Name string
|
||||
Columns []string
|
||||
Comment string
|
||||
}
|
||||
|
||||
type foreignKeys interface {
|
||||
AsSlice() []foreignKey
|
||||
}
|
||||
|
||||
type foreignKey struct {
|
||||
constraint
|
||||
ForeignTable string
|
||||
ForeignColumns []string
|
||||
}
|
||||
|
||||
type uniques interface {
|
||||
AsSlice() []constraint
|
||||
}
|
||||
|
||||
type checks interface {
|
||||
AsSlice() []check
|
||||
}
|
||||
|
||||
type check struct {
|
||||
constraint
|
||||
Expression string
|
||||
}
|
||||
169
base/database/storage/sqlite/dbinfo/records.bob.go
Normal file
169
base/database/storage/sqlite/dbinfo/records.bob.go
Normal file
@@ -0,0 +1,169 @@
|
||||
// Code generated by BobGen sqlite 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 Records = Table[
|
||||
recordColumns,
|
||||
recordIndexes,
|
||||
recordForeignKeys,
|
||||
recordUniques,
|
||||
recordChecks,
|
||||
]{
|
||||
Schema: "",
|
||||
Name: "records",
|
||||
Columns: recordColumns{
|
||||
Key: column{
|
||||
Name: "key",
|
||||
DBType: "TEXT",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Format: column{
|
||||
Name: "format",
|
||||
DBType: "SMALLINT",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Value: column{
|
||||
Name: "value",
|
||||
DBType: "BLOB",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Created: column{
|
||||
Name: "created",
|
||||
DBType: "BIGINT",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Modified: column{
|
||||
Name: "modified",
|
||||
DBType: "BIGINT",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Expires: column{
|
||||
Name: "expires",
|
||||
DBType: "BIGINT",
|
||||
Default: "0",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Deleted: column{
|
||||
Name: "deleted",
|
||||
DBType: "BIGINT",
|
||||
Default: "0",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Secret: column{
|
||||
Name: "secret",
|
||||
DBType: "BOOLEAN",
|
||||
Default: "FALSE",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Crownjewel: column{
|
||||
Name: "crownjewel",
|
||||
DBType: "BOOLEAN",
|
||||
Default: "FALSE",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: recordIndexes{
|
||||
SqliteAutoindexRecords1: index{
|
||||
Type: "pk",
|
||||
Name: "sqlite_autoindex_records_1",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "key",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
Partial: false,
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "pk_main_records",
|
||||
Columns: []string{"key"},
|
||||
Comment: "",
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type recordColumns struct {
|
||||
Key column
|
||||
Format column
|
||||
Value column
|
||||
Created column
|
||||
Modified column
|
||||
Expires column
|
||||
Deleted column
|
||||
Secret column
|
||||
Crownjewel column
|
||||
}
|
||||
|
||||
func (c recordColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.Key, c.Format, c.Value, c.Created, c.Modified, c.Expires, c.Deleted, c.Secret, c.Crownjewel,
|
||||
}
|
||||
}
|
||||
|
||||
type recordIndexes struct {
|
||||
SqliteAutoindexRecords1 index
|
||||
}
|
||||
|
||||
func (i recordIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.SqliteAutoindexRecords1,
|
||||
}
|
||||
}
|
||||
|
||||
type recordForeignKeys struct{}
|
||||
|
||||
func (f recordForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{}
|
||||
}
|
||||
|
||||
type recordUniques struct{}
|
||||
|
||||
func (u recordUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type recordChecks struct{}
|
||||
|
||||
func (c recordChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
Reference in New Issue
Block a user