Granite::Adapter::Base
The Base Adapter specifies the interface that will be used by the model objects to perform actions against a specific database. Each adapter needs to implement these methods.
Constructors
Instance methods
database
SourceThis will delete a row from the database.
Returns true if a record exists that matches criteria, otherwise false.
This will insert an array of models as one insert statement
This will insert a row in the database and return the id generated.
name
Sourceopen
Sourceselect performs a query against a table. The query object contains table_name, fields (configured using the sql_mapping directive in your model), and an optional raw query string. The clause and params is the query and params that is passed in via .all() method
This will update a row in the database.
url
Source