{"id":19885687,"url":"https://github.com/asmod4n/mruby-lmdb","last_synced_at":"2025-05-02T16:31:46.202Z","repository":{"id":32779048,"uuid":"36370956","full_name":"Asmod4n/mruby-lmdb","owner":"Asmod4n","description":"mruby wrapper for Lightning Memory-Mapped Database from Symas http://symas.com/mdb/","archived":false,"fork":false,"pushed_at":"2021-09-05T16:48:15.000Z","size":208,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T03:34:39.669Z","etag":null,"topics":["lmdb","mruby"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asmod4n.png","metadata":{"files":{"readme":"README.md","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-05-27T14:07:32.000Z","updated_at":"2021-09-05T16:48:18.000Z","dependencies_parsed_at":"2022-09-12T14:10:28.230Z","dependency_job_id":null,"html_url":"https://github.com/Asmod4n/mruby-lmdb","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asmod4n%2Fmruby-lmdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asmod4n%2Fmruby-lmdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asmod4n%2Fmruby-lmdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asmod4n%2Fmruby-lmdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asmod4n","download_url":"https://codeload.github.com/Asmod4n/mruby-lmdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252071847,"owners_count":21690100,"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","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":["lmdb","mruby"],"created_at":"2024-11-12T17:35:18.479Z","updated_at":"2025-05-02T16:31:45.850Z","avatar_url":"https://github.com/Asmod4n.png","language":"C","readme":"﻿# mruby-lmdb\nmruby wrapper for Lightning Memory-Mapped Database from Symas http://symas.com/mdb/\n\nExamples\n========\n\n```ruby\nenv = MDB::Env.new\nenv.open('testdb', MDB::NOSUBDIR)\ndb = env.database(MDB::INTEGERKEY)\n\ndb \u003c\u003c 'hallo0' \u003c\u003c 'hallo1' \u003c\u003c 'hallo2'\n\ndb[18.to_bin] = 'hallo18'\n\ndb.concat ['hallo19', 'hallo20'] # for faster batch import\n\ndb.each do |k, v|\n  puts \"#{k.to_fix} = #{v}\"\nend\n\ndb.cursor(MDB::RDONLY) do |cursor|\n  puts cursor.set_range(10.to_bin) # finds the exact or next larger key, see https://github.com/LMDB/lmdb/blob/LMDB_0.9.16/libraries/liblmdb/lmdb.h#L350 for more cursors.\nend\n\nputs db.first\nputs db.last\n\nputs db.stat\nputs env.info\nputs env.stat\n\n```\n\nLicense\n=======\nCopyright 2015\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this software except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nAcknowledgements\n================\nThis is using code from https://github.com/LMDB/lmdb\n\nThe OpenLDAP Public License\n  Version 2.8, 17 August 2003\n\nRedistribution and use of this software and associated documentation\n(\"Software\"), with or without modification, are permitted provided\nthat the following conditions are met:\n\n1. Redistributions in source form must retain copyright statements\n   and notices,\n\n2. Redistributions in binary form must reproduce applicable copyright\n   statements and notices, this list of conditions, and the following\n   disclaimer in the documentation and/or other materials provided\n   with the distribution, and\n\n3. Redistributions must contain a verbatim copy of this document.\n\nThe OpenLDAP Foundation may revise this license from time to time.\nEach revision is distinguished by a version number.  You may use\nthis Software under terms of this license revision or under the\nterms of any subsequent revision of the license.\n\nTHIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS\nCONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,\nINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT\nSHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S)\nOR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\nBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\nANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.\n\nThe names of the authors and copyright holders must not be used in\nadvertising or otherwise to promote the sale, use or other dealing\nin this Software without specific, written prior permission.  Title\nto copyright in this Software shall at all times remain with copyright\nholders.\n\nOpenLDAP is a registered trademark of the OpenLDAP Foundation.\n\nCopyright 1999-2003 The OpenLDAP Foundation, Redwood City,\nCalifornia, USA.  All Rights Reserved.  Permission to copy and\ndistribute verbatim copies of this document is granted.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasmod4n%2Fmruby-lmdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasmod4n%2Fmruby-lmdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasmod4n%2Fmruby-lmdb/lists"}