Skip to content

Instantly share code, notes, and snippets.

@jgoldhammer
Created October 16, 2016 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgoldhammer/e9aa16554e8cfe644d2fa9f85d63fbb3 to your computer and use it in GitHub Desktop.
Save jgoldhammer/e9aa16554e8cfe644d2fa9f85d63fbb3 to your computer and use it in GitHub Desktop.
How to use the database root object in alfresco to run queries against the database of alfresco. It allows to run queries and updates.
database.query("dataSource", "Select * from alf_node where id=?",2);
database.update("dataSource", "Update alf_node set id=? where id=?",2,2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment