|
3 | 3 |
|
4 | 4 | # Mysql2 Lambda Gem
|
5 | 5 |
|
6 | | -<a href="https://github.com/customink/lamby"><img src="https://user-images.githubusercontent.com/2381/59363668-89edeb80-8d03-11e9-9985-2ce14361b7e3.png" alt="Lamby: Simple Rails & AWS Lambda Integration using Rack." align="right" width="300" /></a>Very simple [Mysql2](https://github.com/brianmario/mysql2) gem precompiled for Amazon Linux 1 & 2 (Ruby 2.5 & 2.7) with statically linked `libmysqlclient` ready for any AWS Lambda usage, including Rails. |
| 6 | +<a href="https://github.com/customink/lamby"><img src="https://user-images.githubusercontent.com/2381/59363668-89edeb80-8d03-11e9-9985-2ce14361b7e3.png" alt="Lamby: Simple Rails & AWS Lambda Integration using Rack." align="right" width="300" /></a>Very simple [Mysql2](https://github.com/brianmario/mysql2) gem precompiled for Amazon Linux 1 & 2 (Ruby 2.5 & 2.7) with statically linked `libmysqlclient` ready for any AWS Lambda usage, including Rails. Add it to your Gemfile: |
| 7 | + |
7 | 8 |
|
8 | 9 | ```ruby
|
| 10 | +# When using Rails. |
9 | 11 | gem 'mysql2-lambda'
|
| 12 | + |
| 13 | +# When NOT using Rails. |
| 14 | +gem 'mysql2-lambda', require: 'mysql2' |
10 | 15 | ```
|
11 | 16 |
|
12 | 17 | Part of a suite of open source projects from **[Lamby: Simple Rails & AWS Lambda Integration using Rack.](https://github.com/customink/lamby)** Details include:
|
|
0 commit comments