InMemoryLoggedDB.jl/src/InMemoryLoggedDB.jl

21 lines
393 B
Julia
Raw Permalink Normal View History

2020-02-28 09:55:03 +01:00
module InMemoryLoggedDB
2020-04-04 22:15:24 +02:00
export Action, Transaction,
create, modify, delete,
write, restore, replay,
DataBase, DataBaseTable, Table,
ArrayTable, MappedTable
2020-02-28 09:55:03 +01:00
using MsgPack
2020-04-04 22:15:24 +02:00
include("actions.jl")
include("structure.jl")
include("db_init.jl")
2020-02-28 09:55:03 +01:00
2020-04-04 22:15:24 +02:00
function Base.push!(stream::IOStream, object::T) where T
write(stream, Action(create, object))
flush(stream)
2020-02-28 09:55:03 +01:00
end
end # module