Skip to content

Instantly share code, notes, and snippets.

@Ke-
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save Ke-/aaee6ee0dff54f14fc9e to your computer and use it in GitHub Desktop.

Select an option

Save Ke-/aaee6ee0dff54f14fc9e to your computer and use it in GitHub Desktop.
Active Statement Example
local(
query = .ds->table(
::mytable
)->select(
#columns
)->where(
#where
)->orderby(
#orderby
)->limit(
#max * (#pagenumber -1),#max
),
count = #query->count
)
with row in #query->rows do {
// do some stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment