InMemoryLoggedDB.jl/src/InMemoryLoggedDB.jl

21 lines
393 B
Julia

module InMemoryLoggedDB
export Action, Transaction,
create, modify, delete,
write, restore, replay,
DataBase, DataBaseTable, Table,
ArrayTable, MappedTable
using MsgPack
include("actions.jl")
include("structure.jl")
include("db_init.jl")
function Base.push!(stream::IOStream, object::T) where T
write(stream, Action(create, object))
flush(stream)
end
end # module