Convert table to dict for easier access
parent
aff95b794e
commit
3ae8fd2d12
|
@ -73,6 +73,8 @@ function Base.write(io::IOStream, object::Action; S = UInt32)
|
||||||
wl
|
wl
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Base.Dict(dbt::DataBaseTable) = dbt.memory.data
|
||||||
|
|
||||||
function Base.getindex(tbl::DataBaseTable, key::T) where T
|
function Base.getindex(tbl::DataBaseTable, key::T) where T
|
||||||
tbl.memory.data[key]
|
tbl.memory.data[key]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue