matt-42 / silicon

A high performance, middleware oriented C++14 http web framework please use matt-42/lithium instead
http://siliconframework.org
MIT License
1.73k stars 138 forks source link

Handling db connection at run time and documenting rest api example #57

Open bnlambert opened 7 years ago

bnlambert commented 7 years ago

Silicon is a great work and bravo to the creator and contributors.

I wish to know

Thanks

matt-42 commented 7 years ago

Hi @bnlambert ,

how to connect to many mysql databases at run time. It's not possible, but I try to make it possible if you need it.

if database connection in Silicon done asynchronously

Silicon uses the mysqlclient driver, it does not provide a asynchronous API.

any recommended api documentation tools for documenting REST APIs created with Silicon

What do you mean by documentation tools ? I usually use simple a txt file documenting all the routes, their parameters and what they return.

bnlambert commented 7 years ago

An example of api documentation tool is swagger. I am more concern in changing database configuration at run base on incoming request or active user.. Thank you very much for your feedback.