Skip to content

Instantly share code, notes, and snippets.

@ryansgot
Last active May 21, 2018 18:24
Show Gist options
  • Save ryansgot/f33441e988cc6e7eee50339ffa7ee8da to your computer and use it in GitHub Desktop.
Save ryansgot/f33441e988cc6e7eee50339ffa7ee8da to your computer and use it in GitHub Desktop.
Quickstart Insertion Query
// java version
String uuid1 = UUID.randomUUID().toString();
// the below assumes use of forsuredbandroid-contentprovider
// as the platform integration library. SaveResult would be
// parameterized with DirectLocator if using
// forsuredbandroid-directdb or forsuredbjdbc
SaveResult<Uri> saveResult = ForSure.employeesTable()
.set()
.firstName("FS")
.lastName("Ryan")
.uuid(uuid1)
.save();
// kotlin version
val uuid1 = UUID.randomUUID().toString()
var saveResult = ForSure.employeesTable()
.set()
.firstName("FS")
.lastName("Ryan")
.uuid(uuid1)
.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment