# Page Gasoline : Rest SQL DataSource + Admin page

**URL:** <https://community.ofelia.com/t/page-gasoline-rest-sql-datasource-admin-page/26138>\
**Category:** Contributions\
**Tags:** page\
**Created:** [1 October 2016 00:47 UTC](https://community.ofelia.com/t/page-gasoline-rest-sql-datasource-admin-page/26138 "2016-10-01T00:47:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre-yves\_Monnet](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pierre-yves\_Monnet](https://community.ofelia.com/u/Pierre-yves_Monnet)\
**Post date:** [1 October 2016 00:47 UTC](https://community.ofelia.com/t/page-gasoline-rest-sql-datasource-admin-page/26138/1 "2016-10-01T00:47:09Z")

</div>

- Register a SQL Query, then execute if via a REST CALL (useful in a Form or a Page) - no development
- Handle multiple data sources
- Check performance on execution
- Configure access on each SQL request, one by one
- Simulation mode: if you don't have access to the database on your development platform, use the simulation method

&nbsp;

 ![screenshoot_list.jpg](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/5/58b0bfc75431cd06e701ae68cf9ddafe8120a2f1.jpeg)

For each query, define an ID, a SQL request, an explanation, a datasource. A Delay can be include in the request, to verify how your form will handle a slow query.

 ![screenshoot_query.jpg](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/4/41023dd9f66874bc611d651fd3ad2942b5b91fe6.jpeg)

Query can contains parameters : just reference it using the format " :" like select username from user\_ where country = :countrycode

Then, give the parameters value in the REST CALL: queryid=12&countrycode=FR

 ![screenshoot_RESTCALL.jpg](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/c/c85ab99101f7c407be3100108d572f36db70f004.jpeg)

  
**Repository URL :** [https://github.com/Bonitasoft-Community/page\_gasolinetruck](https://github.com/Bonitasoft-Community/page_gasolinetruck)
