This is the fourth part of the series where we create a service to interact with MySQL server in rails using mysql2 gem.

Requirements

  • [x] Service to connect with external MySQL server
  • [x] Perform basic query: select, insert and update
  • [x] Prepared statement
  • [ ] Perform transactions
  • [ ] Perform join query

In the previous three articles, we created a service, added methods to help us perform select, insert and update operations, and also added methods to help us in performing prepared statements. Today we will be looking at performing transactions in MySQL server using mysql2 gem.

In this blog

We will be learning the following in this blog:

  • Perform transactions

#mysql #rails #ruby

Interact With Mysql Server Using Mysql2 Gem - Perform Transactions
1.20 GEEK