Add database doc

This commit is contained in:
sdogruyol 2016-01-02 11:57:06 +02:00
parent dff1405934
commit fbf119078f
2 changed files with 14 additions and 1 deletions

View file

@ -33,4 +33,4 @@ Kemal means *Mature, grown up* in Turkish.
- [HTTP Requests and Responses](./http-requests.md)
- [Serving JSON API](./json.md)
- [Middlewares](./middlewares.md)
- [How to connect to Database](https://github.com/sdogruyol/kemal-pg-sample)
- [Connectiong to database](./database.md)

13
_docs/database.md Normal file
View file

@ -0,0 +1,13 @@
---
layout: doc
title: "Database Connection"
---
Kemal supports database connection in an easy and extensible way. Kemal uses a connection pool to handle all the connections meaning it's scalable by default.
Currently Kemal supports Postgresql and MySQL with:
- [kemal-pg](https://github.com/sdogruyol/kemal-pg)
- [kemal-mysql](https://github.com/sdogruyol/kemal-mysql)
You can check the relevant repo for samples and more info.