Last active
May 19, 2026 06:12
-
-
Save hymkor/e3769517c8a61160b1a92e9a87275473 to your computer and use it in GitHub Desktop.
SQL-Bless で chinook( https://github.com/lerocha/chinook-database )を読み込んだ DB を開くバッチファイル
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| @call :"%~1" %2 %3 %4 %5 %6 %7 %8 %9 | |
| @exit /b | |
| :"" | |
| echo chinook.cmd {sqlite^|sqlserver^|mysql^|oracle^|psql} | |
| exit /b | |
| :"sqlite" | |
| :"sqlite3" | |
| sqlbless %* sqlite3 chinook.db | |
| exit /b | |
| :"mssql" | |
| :"sqlserver" | |
| sqlbless %* "sqlserver://@localhost/SQLExpress?Database=chinook&protocol=lpc" | |
| exit /b | |
| :"mysql" | |
| sqlbless %* mysql "root:@/chinook" | |
| exit /b | |
| :"oracle" | |
| sqlbless %* oracle://c%%23%%23chinook:chinook@localhost:1521/xe | |
| exit /b | |
| :"psql" | |
| sqlbless %* postgres://postgres@127.0.0.1:5432/chinook?sslmode=disable | |
| exit /b | |
| rem gist https://gist.github.com/hymkor/e3769517c8a61160b1a92e9a87275473 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment