Skip to content

Instantly share code, notes, and snippets.

@niroj-office
Created November 6, 2020 19:31
Show Gist options
  • Save niroj-office/48da480125910d6d4b1760e886875691 to your computer and use it in GitHub Desktop.
Save niroj-office/48da480125910d6d4b1760e886875691 to your computer and use it in GitHub Desktop.
Db Operations Enum for custom spark JDBC write
object DbOperations extends Enumeration {
type DbOperation = Value
val INSERT = Value("INSERT")
val UPDATE = Value("UPDATE")
val UPSERT = Value("UPSERT")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment