Skip to content
Ravi Teja Gudapati edited this page Jan 18, 2019 · 1 revision

Adapter is an interface that all database drivers must implement. It provides methods to establish connection with database and execute various SQL statements.

Managing connection

Use connect and close methods to establish and teardown a connection to database respectively.

CRUD

insert, find, update and remove methods execute one of the CRUD operation against the database. They accept Insert, Find, Update and Remove statement builders respectively.

Table operations

createTable and dropTable methods shall be used to create and drop tables respectively.

Database operations

createDatabase and dropDb shall be used to create and drop database respectively.