{"repo":"rowdb/rowdb","free":true,"listed":false,"github":"https://github.com/rowdb/rowdb","clone":"git clone https://github.com/rowdb/rowdb.git","description":"A local JSON database that saves to .json or .js","language":"Ruby","stars":16,"topics":["json","database"],"license":"MPL-2.0","category":"databases-storage","readme_excerpt":"A local JSON database for Ruby inspired by lowdb, using Rudash for easy Hash traversal. Usage Method execution is lazy, values are only returned or written after calling value() or write() . Installation In your Gemfile add: Then run: Or install globally with: API All methods return a Rowdb instance which you can chain other methods on. new() Example: Params: file name - The path to the file. Accepts path relative to execution path or absolute path. Acceptable file extensions are \".json\" and \".js\". adapter - The method to read and write data. Defaults to a synchronous file system. js var - The name of the variable that the JSON is assigned to when file name ends in \".js\". defaults() Params: Hash data - The default structure of the database. get() Params: String path - The path query mirroring Rudash API. set() Params: String path - The path query mirroring Rudash API. Object value - The value you wish to store. push() Push a value onto an array. Must be chained after a get() which gets the array to push to. Example: Params: Object value - The value you wish to store. value() Returns: The value stored in the database. write() Saves the data to the file system.","default_branch":null,"files":null,"tree":[],"storefront":"/r/rowdb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rowdb/rowdb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}