-
Notifications
You must be signed in to change notification settings - Fork 39
BoxCar ActiveRecord
Francis edited this page May 5, 2023
·
2 revisions
This boxcar enables the engine to make calls to a SQL Database.
Use this box car when you want to ask questions about data in the database.
# run a Train for an Active Record
boxcars = [Boxcars::ActiveRecord.new]
train = Boxcars.train.new(boxcars: boxcars)
puts train.run "How many tickets does Pedro have open?"