Skip to content

Instantly share code, notes, and snippets.

@piercelamb
Created August 8, 2016 21:09
Show Gist options
  • Save piercelamb/e1f71a383440c626db022ba5bfeac1ea to your computer and use it in GitHub Desktop.
Save piercelamb/e1f71a383440c626db022ba5bfeac1ea to your computer and use it in GitHub Desktop.
The examples below show the DataFrame API extensions made by SnappyData
/**
* Insert one or more Row into an existing table
*/
def insert(tableName: String, rows: Row*): Int
/**
* Update all rows in table that match passed filter expression
*/
def update(tableName: String, filterExpr: String, newColumnValues: Row,
updateColumns: String*): Int
/**
* Delete all rows in table that match passed filter expression
*/
def delete(tableName: String, filterExpr: String): Int
/**
* Upsert one or more Row into an existing table
*/
def put(tableName: String, rows: Row*): Int;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment