{"repo":"dariopellegrini/StorageDone-Android","free":true,"listed":false,"github":"https://github.com/dariopellegrini/StorageDone-Android","clone":"git clone https://github.com/dariopellegrini/StorageDone-Android.git","description":"Kotlin library to make easy using local document-oriented database in Android apps.","language":"Kotlin","stars":21,"topics":["android","kotlin","database","nosql","couchbase","coroutines"],"license":"MIT","category":"databases-storage","readme_excerpt":"StorageDone-Android Kotlin library to make easy using local document-oriented database in Android apps. Installation Edit your build.gradle file Then add as dependency to your app/build.gradle Usage StorageDone lets you save models in a local database very easily. First create a model Then create a StorageDoneDatabase object. For 0.8.1+ For 0.8 and earlier versions Finally save an instance of a model in it. Reading database content will retrieve an array of the decleared model Other methods allow filtering and deletion. Primary key A model can implement PrimaryKey interface, in order to have an attribute set as database primary key Primary keys come in combination with insert or update methods Coroutines Every operation has its suspending version. Each can be used through suspending extension Operators Database objects can use different functions, which wrap try-catch logic and give a more compact way to access database Queries Get and delete commands can use queries. Queries can be built in different ways, using custom operators Ordering Ordering on queries is performed using extension properties on the attributes' names. It's possible to use more of them to achive an order priority on attributes. Live queries Using live queries it's possible to observe database changes. To cancel a live query simply call cancel on LiveQuery object. Advanced queries Using advanced queries lets to specify filtering expression, ordering logic and priority, limit and skip values. All of these p","default_branch":null,"files":null,"tree":[],"storefront":"/r/dariopellegrini","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dariopellegrini/StorageDone-Android/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."}