This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Tips
Enable query logging
In Merb:
Merb::BootLoader.after_app_loads do
DataObjects::Mysql.logger = DataObjects::Logger.new('log/dm.log', 0)
DataObjects::Sqlite3.logger = DataObjects::Logger.new(Merb.log_file, 0)
end
When running standalone, use the DataMapper::Logger singleton:
DataMapper::Logger.new(STDOUT, :debug)
(or similarly :off, :fatal, :error, :warn, :info, :debug)
The logger wil log queries and their durations:
(0.018561) INSERT INTO “foos” (“bar”) VALUES (‘baz’)
(0.000069) SELECT “id”, “bar” FROM “foos” LIMIT 1






