Adding the challenge 0202

This commit is contained in:
2026-07-26 21:48:08 +02:00
parent 19f6f8d323
commit 666465bb7d
11 changed files with 499 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
package db0202
type Schema struct {
Table string
Cols []Column
PKey []int // indexes of primary key columns
}
type Column struct {
Name string
Type CellType
}
type Row []Cell
func (schema *Schema) NewRow() Row {
return make(Row, len(schema.Cols))
}
func (row Row) EncodeKey(schema *Schema) (key []byte)
func (row Row) EncodeVal(schema *Schema) (val []byte)
func (row Row) DecodeKey(schema *Schema, key []byte) (err error)
func (row Row) DecodeVal(schema *Schema, val []byte) (err error)
// QzBQWVJJOUhU https://trialofcode.org/