{"id":31706682,"url":"https://github.com/arpunk/memento","last_synced_at":"2025-10-08T23:27:05.635Z","repository":{"id":33525188,"uuid":"37171242","full_name":"arpunk/memento","owner":"arpunk","description":"Mnesia wrapper for LFE","archived":false,"fork":false,"pushed_at":"2015-12-29T05:17:42.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-23T23:51:42.563Z","etag":null,"topics":["lfe","mnesia"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arpunk.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-10T02:37:53.000Z","updated_at":"2017-02-22T14:38:35.000Z","dependencies_parsed_at":"2022-09-24T05:12:04.988Z","dependency_job_id":null,"html_url":"https://github.com/arpunk/memento","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/arpunk/memento","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpunk%2Fmemento","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpunk%2Fmemento/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpunk%2Fmemento/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpunk%2Fmemento/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arpunk","download_url":"https://codeload.github.com/arpunk/memento/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpunk%2Fmemento/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000736,"owners_count":26082862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lfe","mnesia"],"created_at":"2025-10-08T23:27:02.504Z","updated_at":"2025-10-08T23:27:05.629Z","avatar_url":"https://github.com/arpunk.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"* Memento\n** Introduction\n\n   Memento is an mnesia wrapper for LFE\n\n** Installation\n\n   Just add it to your =rebar.config= deps:\n\n   #+BEGIN_SRC erlang\n   {deps, [\n    ...\n    {memento, {git, \"git@github.com:arpunk/memento.git\", {branch, \"master\"}}}\n    ...\n   ]}.\n   #+END_SRC\n\n   And then do the usual:\n\n   #+BEGIN_SRC sh\n   $ rebar3 compile\n   #+END_SRC\n\n** Usage\n\n   It's very easy!\n\n   #+BEGIN_SRC lisp\n   (defmodule testing-memento\n     (import\n       (from memento-table (write 2))\n       (from memento-query (select 2))))\n\n   (include-lib \"memento/include/table.lfe\")\n   (include-lib \"memento/include/transaction.lfe\")\n\n   ;; First time?\n   (memento:stop)\n   (memento-schema:create)\n   (memento:start)\n\n   ;; Let's define some records\n   (defrecord person\n     name\n     age)\n\n   ;; Now let's define our table properties\n   (set person-opts `[#(type set)\n                      #(disc_copies [,(node)])])\n\n   ;; Once we are ready we can create the table\n   (create-table person person-opts)\n\n   ;; And the fun starts\n   (with-transaction\n     (write 'person (make-person name \"John Doe\" age 31)))\n\n   ;; Querying\n   (with-transaction\n     (select 'person\n             (match-spec\n               (((tuple _ name age)) (when (\u003e age 20))\n                 (tuple 'ok name)))))\n   #+END_SRC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farpunk%2Fmemento","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farpunk%2Fmemento","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farpunk%2Fmemento/lists"}