-
Notifications
You must be signed in to change notification settings - Fork 53
Adapter
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.
Use connect
and close
methods to establish and teardown a connection to database respectively.
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.
createTable
and dropTable
methods shall be used to create and drop tables respectively.
createDatabase
and dropDb
shall be used to create and drop database respectively.