Skip to content

Instantly share code, notes, and snippets.

@chippinkston
Created August 7, 2015 20:14
Show Gist options
  • Select an option

  • Save chippinkston/a63033dcd3dd66581fd5 to your computer and use it in GitHub Desktop.

Select an option

Save chippinkston/a63033dcd3dd66581fd5 to your computer and use it in GitHub Desktop.
A demo FW/1 service to test DB connections
component accessors=true output=false persistent=false {
property datasource;
public query function getOneRecord(){
var q = queryExecute(
"select name, abbrev from state limit 1"
, {datasource = "#getDatasource().name#"}
);
return q;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment