summaryrefslogtreecommitdiff
path: root/src/db.erl
Commit message (Collapse)AuthorAgeFilesLines
* Add db:size/0 and some error checking.Linus Nordberg2014-05-291-8/+15
|
* Add db:get_by_index/2.Linus Nordberg2014-05-261-2/+14
|
* Use mnesia:index_read() instead of select() bc simpler.Linus Nordberg2014-05-031-2/+1
|
* Sign using ECDSA and fix a couple bugs.Linus Nordberg2014-05-021-3/+12
| | | | | | | | | | | Revive the plop_entry and hash over that instead of the full MTL, for the db hash. We don't want the timestamp in that hash! Use ECDSA instead of RSA for signing stuff. That's what Google does and we want to use their test suites. An annoyance with DSA is that the signature isn't deterministic. Testing just became less easy. Fix db:find() now that the hash is no longer the primary key.
* Move some records out of public header file. Improve db initialisation some.Linus Nordberg2014-05-011-6/+10
| | | | Wait for mnesia tables in init() and make the init-functions do some more.
* Add init functions, for testing.Linus Nordberg2014-04-301-2/+14
|
* Turn it all into an application.Linus Nordberg2014-04-291-0/+1
| | | | Warning: Rough edges.
* First cut at adding DB support.Linus Nordberg2014-04-291-0/+86
Including half crazy rewrite of most of the data structures.