10. CLOS class
CLOS class
CLOS class
CLOS
Object
CLOS
Object
CLOS
Object
make-instance
▸ Abstracts RDBMS including SQL
▸ Maps RDB tables to CLOS classes
▸ Maps RDB records to CLOS objects
▸ Can add methods
▸ Accelerates development
11. Do you know O/R Mapper?
ORM Examples
▸ CLSQL
▸ Postmodern
12. Do you know O/R Mapper?
ORM Examples
▸ CLSQL
▸ Postmodern
▸ Integral
13. Do you know O/R Mapper?
ORM Examples
▸ CLSQL
▸ Postmodern
▸ Integral
A talk about “Integral”
2 years ago
14. Do you know O/R Mapper?
ORM Examples
▸ CLSQL
▸ Postmodern
▸ Integral
▸ Crane
A talk about “Integral”
2 years ago
15. Do you know O/R Mapper?
ORM Examples
▸ CLSQL
▸ Postmodern
▸ Integral (Not recommended)
▸ Crane
▸ Mito
A talk about “Integral”
2 years ago
NEW!
17. What’s new in Mito?
Mito, a successor of Integral
▸ Supports PostgreSQL, as well as MySQL & SQLite3
▸ Implicit columns (auto-pk & record-timestamps)
▸ Reference between DB table classes
▸ Eager loading
▸ Inheritance of DB table classes
▸ Migrations
▸ Schema versioning
45. Inheritance of DB table classes - Mixin
Mixin
▸ Injects columns and methods
▸ record-timestamps is an actual example
▸ Adds created_at & updated_at
46. Inheritance of DB table classes - Mixin
Ex) mito-auth
▸ Managing user passwords is dull
▸ Stores hashed passwords
▸ Authenticates
github.com/fukamachi/mito-auth