Created
March 31, 2022 13:56
-
-
Save galex/67224490f93f13fd700fb5a803275814 to your computer and use it in GitHub Desktop.
Extensions for SQLDelight
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
fun DeviceQueries.saveDevice(device: Device) = insertOrUpdate( | |
identifier = device.identifier, | |
appIdentifier = device.appIdentifier, | |
versionCode = device.versionCode, | |
versionName = device.versionName, | |
devicePlatform = device.devicePlatform, | |
deviceModel = device.deviceModel, | |
deviceManufacturer = device.deviceManufacturer, | |
connected = device.connected, | |
foreground = device.foreground, | |
favorite = device.favorite, | |
expanded = device.expanded, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment