Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Small JRuby Success Story
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
seban
January 05, 2012
75
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Small JRuby Success Story
Testing speaker deck
seban
January 05, 2012
Transcript
6 slides
JRuby real use case Small JRuby success story
Problem • Pobranie informacji z bazy danych programu księgowego Symfonia
Premium • Baza danych: Pervasive/BTrive (WTF?) • Ilość danych: 500 000 i rośnie • Cel: struktura bazy danych, która pozwala na łatwe zapytania OLAP i generowanie raportów dla zarządu (tabele i wykresy)
Pervasive DB • Jakiś SQL • Dużo mniej przyjemne w
obyciu niż MySQL • Uruchomione na Windows • Biblioteka antywzorców w projektowaniu baz danych • Dostępne sterowniki do podłączenia: ADO.Net ODBC JDBC
RVM • wiele implementacji Ruby • wiele wersji Ruby •
łatwe rvm install jruby rvm jruby ruby -v jruby 1.4.0 gem install ...
No to jazda! require 'java' module JavaSql include_package "java.sql" end
Java::JavaClass.for_name("pervasive.jdbc.PervasiveDriver") @connection = JavaSql::DriverManager.getConnection("jdbc:pervasive://host/DB; encoding=CP1250", "noob", "") stmt = @connection.createStatement stmt.executeQuery("SELECT * FROM table LIMIT 1000")
Problem Pamięć
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
Chasing Engaging Ingredients in Design
codingconduct
0
400
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Music & Morning Musume
bryan
48
7.5k
Statistics for Hackers
jakevdp
799
230k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
The agentic SEO stack - context over prompts
schlessera
0
1k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
How to Talk to Developers About Accessibility
jct
2
620
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480