Implement DML func and related tests
Go Tests / test (push) Failing after 6s

This commit is contained in:
2026-05-04 21:33:29 +02:00
parent 852b5e5888
commit 01336bb911
11 changed files with 538 additions and 38 deletions
+3 -3
View File
@@ -23,13 +23,13 @@ func NewOrmCache(tables []*Table) *OrmCache {
func (o *OrmCache) add(table *Table) {
o.mu.Lock()
defer o.mu.Unlock()
o.data[table.TypeName] = table
o.data[table.Type.Name()] = table
}
func (o *OrmCache) Get(tableName string) (*Table, bool) {
func (o *OrmCache) Get(typeName string) (*Table, bool) {
o.mu.RLock()
defer o.mu.RUnlock()
table, ok := o.data[tableName]
table, ok := o.data[typeName]
return table, ok
}