1 / 13

Rel Ruby (+7NF)

Rel Ruby (+7NF). moriq Ruby@ 関西 Reject Kaigi2007. SQL. なんでこんな言語なんだ? SELECT * FROM r SELECT * FROM r WHERE c SELECT name FROM r WHERE c SELECT ... FROM (SELECT name FROM r WHERE c) JOIN s. Tutorial D. そこで Tutorial D ですよ r r[c] r[c]{name} r[c]{name} JOIN s. D.

miron
Download Presentation

Rel Ruby (+7NF)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Rel Ruby(+7NF) moriq Ruby@関西 RejectKaigi2007

  2. SQL • なんでこんな言語なんだ? • SELECT * FROM r • SELECT * FROM r WHERE c • SELECT name FROM r WHERE c • SELECT ... FROM (SELECT name FROM r WHERE c) JOIN s

  3. Tutorial D • そこでTutorial Dですよ • r • r[c] • r[c]{name} • r[c]{name} JOIN s

  4. D • data language specification • http://en.wikipedia.org/wiki/Tutorial_D

  5. Rel • Tutorial DのJava実装 • An Implementation of Date and Darwen's "Tutorial D" • http://dbappbuilder.sourceforge.net/Rel.html

  6. Rel Ruby • RelをRubyで実装してみた • http://dev.moriq.com/svn/rails/trunk/rel-ruby/

  7. O/R mapper • Object Model • Relational Model • なんでマッピングなんだ?

  8. Relation Object • Relation.new(heading) • r = Relation.new(id: Integer, name: String)

  9. Tuple Object • Tuple.new(attributes) • r << Tuple.new(id: 1, name: 'matz') • r << {id: 1, name: 'matz'}

  10. Relational Ruby • RubyでRelational Modelを表現 • r • r.select { |t| t.name == 'matz' } • r['name'] • r['name'].join(s)

  11. validation reference constraint inheritance locking logging index validation reference constraint inheritance locking logging index Ruby(AR) vs DBMS

  12. App + (RelEngine + Storage) • (App + RelEngine) + Storage

  13. Thank you

More Related