Convert table to dict for easier access

master
nixo 2020-10-23 15:28:54 +02:00
parent aff95b794e
commit 3ae8fd2d12
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ function Base.write(io::IOStream, object::Action; S = UInt32)
wl
end
Base.Dict(dbt::DataBaseTable) = dbt.memory.data
function Base.getindex(tbl::DataBaseTable, key::T) where T
tbl.memory.data[key]
end