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")
|
2020-10-23 15:29:19 +02:00
|
|
|
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
|