SWI

 

Libor Pichler lpichler@redhat.com

Alex Demichev ademicev@redhat.com

ORM

Today

Database

Table

Table - example

1:N - Relation

What I can do with databases(tables,...) ?

Complex queries

Which authors are based in Brno ? `authors#location`

Which authors are publishing in Brno? `books#published_at_location`

Ruby - let's cook

Ruby - classes

Ruby - classes

Ruby - let's cook

ORM

ORM in ruby

1:N Association

- https://guides.rubyonrails.org/association_basics.html

1:N - Association

ApplicationRecord - create

ApplicationRecord - join

Migrations

Migrations

Break