See Room as the recommended alternative https://developer.android.com/training/data-storage/room
RushOrm replaces the need for SQL by mapping java classes to SQL tables.
The aim is to abstract away all SQLite interaction under a very simple interface to make object storage incredibly quick to implement.
- Projects with complex data structures
- Projects that want to implement database storage in the minimum amount of time
- Projects that talk to a rest api
- Complex relationships - RushObjects support Lists of other RushObjects
- SQL free migration
- Easily extendable
- No dependencies
- Support asynchronous call
- Be fast through compound inserts and selects
- Support importing and exporting data to and from JSON
- Unique ids to support merging databases
- Supports conflict resolution when importing data
For getting started see http://www.rushorm.co.uk/
Rush jar can be downloaded from http://www.rushorm.co.uk/download.html alternatively it can be added as below.
Make sure your project is using maven central by including this in your gradle file:
repositories {
mavenCentral()
}
Add the dependency in your build file:
dependencies {
compile 'co.uk.rushorm:rushandroid:1.3.0’
}
Copyright (C) 2015 Stuart Campbell Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.