Add working tview, add working load ond Tables, remove giu

This commit is contained in:
Pablu
2025-12-01 15:00:58 +01:00
parent 027aad1374
commit 6182129022
11 changed files with 383 additions and 172 deletions

View File

@@ -13,26 +13,29 @@ const (
FOREIGN_KEY
NOT_NULL
NONE ColumnFlag = 0
NONE ColumnFlag = 0
)
func (v ColumnFlag) Has(flag ColumnFlag) bool {
return v&flag == flag
}
type ColumnType uint32
const (
TEXT ColumnType = iota
INTEGER
REAL
BLOB
)
type Column struct {
Type string
Type ColumnType
Name string
Reference *Column
Flags ColumnFlag
}
// For testing purposes its string right now
// type Value interface {
// Representation() string
// }
type Row struct {
// This should be map but to Column so its always the right Column but for testing this is a slice now
Values []string