This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Android (forsuredbandroid-contentprovider) | |
package com.fsryan.forsuredb.example; | |
import android.app.Application; | |
import com.fsryan.forsuredb.FSDBHelper; | |
import com.fsryan.forsuredb.ForSureAndroidInfoFactory; | |
import com.fsryan.forsuredb.gsonserialization.FSDbInfoGsonSerializer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Retriever r = ForSure.employeesTable() // <-- enter the employees table Resolver context | |
.find().byNotDeleted() // <-- enter the employees table Finder context | |
.and().byIdBetweenInclusive(2).and(10) | |
.then() // <-- exit the employees table Finder context | |
.joinPositionsTable(FSJoin.Type.INNER) // <-- enter positions table Resolver context | |
.order().byTitle(OrderBy.ORDER_ASC) // <-- enter positions table OrderBy context | |
.then() // <-- exit positions table OrderBy context | |
.find().byNotDeleted() // <-- enter positions table Finder context | |
.and().byNot("President") | |
.then() // <-- exit positions table Finder context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
/*...*/ | |
implementation "com.fsryan.forsuredb:api:$forsuredbVersion" | |
/*...*/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
/*...*/ | |
implementation "com.fsryan.forsuredb:sqlitelib:$forsuredbVersion" | |
/*...*/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// forsuredbandroid-contentprovider | |
dependencies { | |
/*...*/ | |
implementation "com.fsryan.forsuredb:forsuredbandroid-contentprovider:$forsuredbVersion" | |
/*...*/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fsryan.forsuredb.example; | |
import android.app.LoaderManager; | |
import com.fsryan.forsuredb.cursor.FSCursor; | |
import com.fsryan.forsuredb.cursor.FSCursorLoader; | |
public class MyActivity extends AppCompatActivity { | |
MyRecyclerViewAdapter adapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
/*...*/ | |
implementation "com.fsryan.forsuredb:forsuredbmodels-gson:$forsuredbVersion" | |
/*...*/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
/*...*/ | |
implementation "com.fsryan.forsuredb:forsuredbmodels-jackson:$forsuredbVersion" | |
/*...*/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
/*...*/ | |
implementation "com.fsryan.forsuredb:dbinfo:$forsuredbVersion" | |
/*...*/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.1.2' | |
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.30' | |
classpath 'com.fsryan.gradle.forsuredb:forsuredbplugin:0.6.3' | |
} |