{"id":31790750,"url":"https://github.com/njaneambrose/hoaxdb","last_synced_at":"2026-04-21T03:31:23.427Z","repository":{"id":56876504,"uuid":"162475113","full_name":"njaneambrose/hoaxdb","owner":"njaneambrose","description":"Experimental implementation of a NoSQL database in ruby","archived":false,"fork":false,"pushed_at":"2019-04-18T12:17:34.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T03:28:13.427Z","etag":null,"topics":["database","nosql","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/njaneambrose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-19T18:22:02.000Z","updated_at":"2025-08-03T03:07:41.000Z","dependencies_parsed_at":"2022-08-20T11:30:50.024Z","dependency_job_id":null,"html_url":"https://github.com/njaneambrose/hoaxdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/njaneambrose/hoaxdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njaneambrose%2Fhoaxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njaneambrose%2Fhoaxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njaneambrose%2Fhoaxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njaneambrose%2Fhoaxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njaneambrose","download_url":"https://codeload.github.com/njaneambrose/hoaxdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njaneambrose%2Fhoaxdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32075218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","nosql","ruby"],"created_at":"2025-10-10T16:29:29.604Z","updated_at":"2026-04-21T03:31:23.410Z","avatar_url":"https://github.com/njaneambrose.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hoaxdb\r\n\r\nHoaxdb is a simple implementation of a database written in 100% pure ruby. It offers an interface to insert,update,query and delete records like any other databse but does not offer complex features of a database. You set specific data types for your fields and you can also have default values on top of that it validates the records you enter. In terms of queries you can choose specific fields, limits and also sort according to a specific field which can be ascending or descending. Queries are written using ruby hence no external knowledge is needed.\r\n\r\n## Installation\r\n\r\nAdd this line to your application's Gemfile:\r\n\r\n```ruby\r\ngem 'hoaxdb'\r\n```\r\n\r\nAnd then execute:\r\n\r\n    $ bundle\r\n\r\nOr install it yourself as:\r\n\r\n    $ gem install hoaxdb\r\n\r\n## Usage\r\n\r\nUsing the hoaxdb is very simple once you have installed it, the following are the basics:\r\n#### Creating a table\r\n\r\n ```ruby\r\n require 'hoaxdb'\r\n    db = Hoaxdb.new('products.db') #This reads an existing database or creates a database\r\n    db.create_table(\"products\",{\r\n       \"name\"=\u003e{\"type\"=\u003e\"String\",\"default\"=\u003e\"\"}, #setting default prevents nil values\r\n       \"price\"=\u003e{\"type\"=\u003e\"Float\",\"default\"=\u003e0.0}\r\n    })\r\n\tproducts = db.table(\"products\") # connect to this table\r\n```\r\n\r\n#### Inserting a record\r\n\r\n```ruby  \r\nproducts.insert({\"name\"=\u003e\"Iphone\",\"price\"=\u003e100.67}) #insert a record\r\n```\r\n    \r\n#### Updating  a record\r\n\r\n```ruby\r\nproducts.update('this[\"name\"].eql? \"Iphone\"',{\"quantity\"=\u003e200})\r\n```\r\n    \r\n#### Selecting records    \r\n\r\n```ruby\r\nproducts.select_if('this[\"name\"].eql? \"Iphone\"')\r\n```\r\n     \r\n#### Deleting records\r\n\r\n```ruby\r\nproducts.del_if('this[\"name\"].eql? \"Iphone\"')\r\n```\r\n\r\nMore information is available via rdoc when the gem is installed\r\n    \r\n## Contributing\r\n\r\nBug reports and pull requests are welcome on GitHub at https://github.com/njaneambrose/hoaxdb.\r\n\r\n## License\r\n\r\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjaneambrose%2Fhoaxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjaneambrose%2Fhoaxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjaneambrose%2Fhoaxdb/lists"}