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
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
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
110
Oxlintのカスタムルールの現況
syumai
6
1k
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.2k
Lessons from Spec-Driven Development
simas
PRO
0
140
JJUG CCC 2026 Spring: JSpecify で実現する Kotlin フレンドリーな Java API 設計
ternbusty
1
140
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
500
Composerを使ったサプライチェーン攻撃の様子を眺めてみる #phpstudy
o0h
PRO
2
220
Webフレームワークの ベンチマークについて
yusukebe
0
140
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
1.1k
さぁV100、メモリをお食べ・・・
nilpe
0
130
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
450
AI時代のUIはどこへ行く?その2!
yusukebe
19
6.7k
Featured
See All Featured
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
530
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
360
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Curse of the Amulet
leimatthew05
1
13k
How to Think Like a Performance Engineer
csswizardry
28
2.6k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Tell your own story through comics
letsgokoyo
1
950
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
320
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
520
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
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!
͋Γ͕ͱ͏͍͟͝·ͨ͠