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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
250
「とりあえずAI」が招く悲劇〜私がAIで生産性を下げるまでの話〜 / The tragedy caused by "AI for now" - The story of how I used AI to reduce my productivity
taminif
1
320
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
分散システム、なんですぐ死んでしまうん?耐障害性を高めたいあなたのためのレジリエンスパターン入門
mshibuya
7
6.9k
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
1
220
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
2.6k
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
280
これからAgentCoreを触る方へトレンドはGatewayです
har1101
6
510
Prismを使った型安全な暗号化_関数型まつり2026
_fhhmm
0
150
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
150
GitHubCopilotCLIのスラッシュコマンドを自作してみる
htkym
0
110
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
8
3.4k
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
170
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
180
数百円から始めるRuby電子工作
tarosay
0
110
Featured
See All Featured
Fireside Chat
paigeccino
42
4k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
780
Done Done
chrislema
186
16k
Being A Developer After 40
akosma
91
590k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
500
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.7k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
880
Between Models and Reality
mayunak
4
380
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
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!
͋Γ͕ͱ͏͍͟͝·ͨ͠