<div dir="ltr">Hi.<div><br></div><div><br></div><div>We have released our sqlapi library:  <a href="https://github.com/flussonic/sqlapi">https://github.com/flussonic/sqlapi</a></div><div><br></div><div>This library can help you to make an SQL server from your existing server.</div><div><br></div><div>For example you have a server and let it be ejabberd. You want to give a list of connected users.</div><div>Of course you will start from making HTTP endpoint that will reply with JSON with list of users.</div><div><br></div><div>Then you will add some sort, filter, paging as query params and then will write library that allows to make all this params and send them.</div><div><br></div><div>Another option is to put our sqlapi library, connect it to storage of connected users and then connect to server as if it is a SQL server.</div><div><br></div><div><br></div><div>Here another real example:  <a href="https://flussonic.com/doc/api/sql-cluster">https://flussonic.com/doc/api/sql-cluster</a>   User can connect to our flussonic server and access whole cluster by sending commands like INSERT, UPDATE, DELETE or READ.</div><div><br></div><div><br></div><div>This approach may be convenient if you have table data and mainly CRUD operations.</div><div><br></div><div><br></div><div>Similar approach is used in Sphinx search engine:  <a href="http://sphinxsearch.com/docs/latest/sphinxql.html">http://sphinxsearch.com/docs/latest/sphinxql.html</a></div><div><br></div><div>We have created all this to connect from python sqlalchemy and Ruby on Rails to Flussonic.</div><div>If you want the same, this library may help.</div><div><br></div><div><br></div><div>the only dependency is ranch and it is optional, not required for tests.</div><div>Some code is derived from <a href="https://github.com/altenwald/myproto">https://github.com/altenwald/myproto</a> but we had to remove neotoma sql parser, because we need speed!  Thanks for <a href="https://github.com/master/mongosql/blob/master/src/sql92_parser.yrl">https://github.com/master/mongosql/blob/master/src/sql92_parser.yrl</a></div><div><br></div><div><br></div><div><br></div></div>