Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Redashの開発はじめました / How to get started Redash dev...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
taminif
September 03, 2019
Programming
810
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Redashの開発はじめました / How to get started Redash development
taminif
September 03, 2019
More Decks by taminif
See All by taminif
React Native New Architecture 移行実践報告
taminif
1
240
「とりあえずAI」が招く悲劇〜私がAIで生産性を下げるまでの話〜 / The tragedy caused by "AI for now" - The story of how I used AI to reduce my productivity
taminif
1
310
PuppeteerとPlaywrightの15日間の演劇 / relation of Puppeteer and Playwright
taminif
3
2.3k
私の生活を変えたHeadless Chrome / Headless Chrome who changed my life
taminif
3
540
WebSocketをiOSに持ち込んで辛い思いをした経験がありますか!? / have you painful experience in web socket?
taminif
3
6.2k
LINEで馬券を購入する / Purchase a betting ticket at LINE
taminif
1
1.7k
SkyWayで一年間運用してきたけどWebRTCってつらいんじゃないの
taminif
2
1k
オンライン英会話とSkyWay
taminif
0
550
オンライン英会話アプリとSkyWay
taminif
0
500
Other Decks in Programming
See All in Programming
Composerを使ったサプライチェーン攻撃の様子を眺めてみる #phpstudy
o0h
PRO
2
220
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
150
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
550
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
130
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
360
AI駆動開発勉強会 広島支部 第一回勉強会 AI駆動開発概要とワークショップ
hayatoshimiu
0
450
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
470
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
1
730
Swiftのレキシカルスコープ管理
kntkymt
0
210
CSC307 Lecture 17
javiergs
PRO
0
320
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.2k
エージェンティックRAGにAWSで入門しよう!
har1101
8
1.2k
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
940
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Become a Pro
speakerdeck
PRO
31
6k
Why Our Code Smells
bkeepers
PRO
340
58k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
260
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
A designer walks into a library…
pauljervisheath
211
24k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
150
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
280
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
160
Transcript
Redashͷ։ൃ ͡Ί·ͨ͠ Redash Meetup 6.0.0 2019/09/03 େౡ ޫو@sbntaminif
ࣗݾհ • ΣϒϦΦגࣜձࣾɹ։ൃGϦʔμʔ • ීஈژͰಇ͍͍ͯ·͢ • ؔNodeֶԂ&SkyWay Meetup Organizer •
ࢥ͍ͬͯ͜ͷMeetupʹඈͼࠐΜͰ͖·ͨ͠
RedashOSSͰ͢ ։ൃʹࢀՃ͍ͨ͠ https://github.com/getredash/redash/blob/master/CONTRIBUTING.md
ࣗͷMacbook Proʹ ڥߏஙͯ͠Έͨ
ߏஙํ๏ ެࣜυΩϡϝϯτࢀর Docker্Ͱͳ࣮͘ػʹߏங https://redash.io/help/open-source/dev-guide/setup
खॱͦͷ··Ͱ ϩʔΧϧͰಈ͍ͨʂ
ͦͷ··MacͰಈ͍͍ͯΔ MySQLʹଓ͢Δ
͋Εʁ
MySQLͷ Datasource͕ͳ͍ɾɾɾ
ͳͥʁʁ
RedashOSSͰ͢ ιʔείʔυΛಡΜͰΈΔ
query_runnerϑΥϧμͷதʹ ֤DatasourceͷଓͷͨΊͷ࣮͕͋Δ https://github.com/getredash/redash/tree/master/redash/query_runner
import logging import os import threading from redash.query_runner import TYPE_FLOAT,
TYPE_INTEGER, TYPE_DATETIME, TYPE_STRING, TYPE_DATE, BaseSQLQueryRunner, InterruptException, register from redash.settings import parse_boolean from redash.utils import json_dumps, json_loads try: import MySQLdb enabled = True except ImportError: enabled = False ɾ ɾ ɾ mysql.pyͷίʔυ
import logging import os import threading from redash.query_runner import TYPE_FLOAT,
TYPE_INTEGER, TYPE_DATETIME, TYPE_STRING, TYPE_DATE, BaseSQLQueryRunner, InterruptException, register from redash.settings import parse_boolean from redash.utils import json_dumps, json_loads try: import MySQLdb enabled = True except ImportError: enabled = False FOBCMFEͷʹΑͬͯ ༻Մೳ͔Ͳ͏͔Λఆ MySQLdb͕ͳ͍͜ͱ͕Θ͔ͬͨ ͳͥMySQLdb͕ͳ͍ͷ͔ʁʁ
pip install -r requirements_all_ds.txt MySQLdbΛࢦఆͯ͠Πϯετʔϧ pip install MySQL-python -> MySQL-python͚ࣦͩഊ͢Δ
-> ͪΖΜࣦഊ͢Δ
ࠔͬͨ࣌ͷStackOverflow https://stackoverflow.com/questions/12218229/my-config-h-file-not-found-when-intall-mysql-python-on-osx-10-8
mysql-connector-cΛͬͯ MySQL-pythonΛΠϯετʔϧ https://stackoverflow.com/questions/12218229/my-config-h-file-not-found-when-intall-mysql-python-on-osx-10-8
Datasource͕දࣔ͞Εͨ
PRૹͬͯΈͨ
Ϛʔδ͞Ε·ͨ͠❗
Let’s Contributing!
͋Γ͕ͱ͏͍͟͝·ͨ͠