Last active
May 21, 2018 18:24
-
-
Save ryansgot/f33441e988cc6e7eee50339ffa7ee8da to your computer and use it in GitHub Desktop.
Quickstart Insertion Query
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
// 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(); |
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
// 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