Skip to content

Instantly share code, notes, and snippets.

@musketyr
Created June 20, 2011 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save musketyr/1035214 to your computer and use it in GitHub Desktop.
Save musketyr/1035214 to your computer and use it in GitHub Desktop.
import static eu.appsatori.gdata.gsql.SSQL.*
// Groovy 1.7 syntax
select(all).from("Spreadsheet").sheet("Worksheet").limit(10).offset(5)
select(1, "test", 5, "it").from("Spreadsheet")
select(all).from("Spreadsheet").order(by).column("Column Name").sort(desc)
// fancy new 1.8 syntax
select all from "Spreadsheet" sheet "Worksheet" limit 10 offset 5
select 1, "test", 5, "it" from "Spreadsheet"
select all from "Spreadsheet" order by column "Column Name" sort desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment