VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


Firebase 프로젝트 탐색 및 관리를 위한 Visual Studio Code 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=jsayol.firebase-explorer





'DATABASE' 카테고리의 다른 글

MySQL - MySQL 관리  (0) 2018.12.15
SQL Server (mssql) - MSSQL 연결  (0) 2018.12.14
Mongo Runner - MongoDB의 인스턴스 접속  (0) 2018.08.28
Redis console - Redis의 인스턴스 접속  (0) 2018.08.19

VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


MySQL 관리를 위한 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=formulahendry.vscode-mysql



  • Manage MySQL Connections (support SSL connection)
  • List MySQL Servers
  • List MySQL Databases
  • List MySQL Tables
  • List MySQL Columns
  • Run MySQL Query


  • MySQL 접속 추가하기: VSCode 탐색의 왼쪽 아래에 "MYSQL" 을 클릭하고 + 버튼을 클릭한다. 
  • host, user, password, port 와 인증파일 경로(옵션)을 입력한다.



  • MySQL 쿼리 실행하기
    • SQL 파일에서 오른쪽 클릭을 하고, Run MySQL Query 를 클릭한다.
    • 또는 단축키 Ctrl+Alt+E 사용한다.
    • 또는 F1 을 눌러서 Run MySQL Query 를 선택한다.


  • 새로운 MySQL query 만들기 또는 MySQL 접속 변경하기 (상태바에 접속된 MySQL 접속을 볼수 있다.):

    • MySQL 서버를 오른쪽 클릭하고 New Query 를 클릭한다. 
    • 또는 MySQL database 를 오른쪽 클릭하고 New Query 를 클릭한다.

VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


어디서나 Microsoft SQL Server, Azure SQL Database 와 SQL Data Warehouse 를 개발할 수 있는 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql




  • Microsoft SQL Server, Azure SQL Database 및 SQL Data Warehouse 에 연결합니다.
  • 연결 프로필 및 가장 최근에 사용한 연결을 만들고 관리합니다.
  • IntelliSense, Go to Definition, T-SQL snippets, syntax colorizations, T-SQL 오류 유효성 검사 및 GO 배치 구분 기호로 T-SQL 스크립트 작성
  • 스크립트를 실행하고 사용하기 쉬운 그리드에서 결과를 봅니다.
  • 결과를 json 또는 csv 파일 형식으로 저장하고 편집기에서 봅니다.
  • 명령 단축키 등을 포함한 사용자 정의 가능한 확장 옵션.



  • First, install Visual Studio Code then install mssql extension by pressing F1 or ctrl+shift+p to open command palette, select Install Extension and type mssql.
  • Open an existing file with a .sql file extension or open a new text file (ctrl+n) and change the language mode to SQL by pressing ctrl+k,m and select SQLmssql commands and functionalities are enabled in the SQL language mode in Visual Studio Code editor.
  • Create a new connection profile using command palette by pressing F1, type sqlman to run MS SQL: Manage Connection Profile command. Select Create. See manage connection profiles for more information about how to create and edit connection profiles in your User Settings (settings.json) file.
  • Connect to a database by pressing F1 and type sqlcon to run MS SQL: Connnect command, then select a connection profile. You can also use a shortcut (ctrl+shift+c).
  • Write T-SQL script in the editor using IntelliSense and Snippets. Type sql in the editor to list T-SQL Snippets.
  • Execute T-SQL script or selection of statements in the script by pressing F1 and type sqlex to run MS SQL: Execute Query command. You can also use a shortcut (ctrl+shift+e). See customize shortcuts to learn about change shortcut key bindings to mssql commands.
  • View the T-SQL script execution results and messages in result view.

The extension provides several commands in the Command Palette for working with .sql files:

  • MS SQL: Connect to SQL Server, Azure SQL Database or SQL Data Warehouse using connection profiles or recent connections.
    • Create Connection Profile to create a new connection profile and connect.
  • MS SQL: Disconnect from SQL Server, Azure SQL Database or SQL Data Warehouse in the editor session.
  • MS SQL: Use Database to switch the database connection to another database within the same connected server in the editor session.
  • MS SQL: Execute Query script, T-SQL statements or batches in the editor.
  • MS SQL: Cancel Query execution in progress in the editor session.
  • MS SQL: Manage Connection Profiles
    • Create a new connection profile using command palette's step-by-step UI guide.
    • Edit user settings file (settings.json) in the editor to manually create, edit or remove connection profiles.
    • Remove an existing connection profile using command palette's step-by-step UI guide.
    • Clear Recent Connection List to clear the history of recent connections.

The following Visual Studio Code settings are available for the mssql extension. These can be set in user preferences (cmd+,) or workspace settings (.vscode/settings.json). See customize options and manage connection profilesfor more details.

{
    "mssql.maxRecentConnections": 5,
    "mssql.connections":[],
    "mssql.shortcuts": {
        "event.toggleResultPane": "ctrl+alt+r",
        "event.toggleMessagePane": "ctrl+alt+y",
        "event.prevGrid": "ctrl+up",
        "event.nextGrid": "ctrl+down",
        "event.copySelection": "ctrl+c",
        "event.maximizeGrid": "",
        "event.selectAll": "",
        "event.saveAsJSON": "",
        "event.saveAsCSV": "",
        "event.saveAsExcel": ""
    },
    "mssql.messagesDefaultOpen": true,
    "mssql.logDebugInfo": false,
    "mssql.saveAsCSV.includeHeaders": true,
    "mssql.intelliSense.enableIntelliSense": true,
    "mssql.intelliSense.enableErrorChecking": true,
    "mssql.intelliSense.enableSuggestions": true,
    "mssql.intelliSense.enableQuickInfo": true,
    "mssql.intelliSense.lowerCaseSuggestions": false,
    "mssql.resultsFontFamily": "-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,Ubuntu,Droid Sans,sans-serif",
    "mssql.resultsFontSize": 13,
    "mssql.copyIncludeHeaders": false,
    "mssql.copyRemoveNewLine" : true,
    "mssql.splitPaneSelection": "next",
    "mssql.format.alignColumnDefinitionsInColumns": false,
    "mssql.format.datatypeCasing": "none",
    "mssql.format.keywordCasing": "none",
    "mssql.format.placeCommasBeforeNextStatement": false,
    "mssql.format.placeSelectStatementReferencesOnNewLine": false,
    "mssql.applyLocalization": false,
    "mssql.query.displayBitAsNumber": true,
    "mssql.persistQueryResultTabs": false
}


Mongo Runner는 MongoDB의 인스턴스에 접속해서 기본 명령어를 입력하도록 도와줍니다.


링크 : https://marketplace.visualstudio.com/items?itemName=JoeyYiZhao.mongo-runner






다음과 같이 작업영역에 MongoDB 접속 설정을 합니다.

"mongoRunner": {
        "connection": {
            "url": "mongodb://localhost:27017",
            "activeOnStartUp": true,
            "user": "username",
        }
    }


'DATABASE' 카테고리의 다른 글

Firebase Explorer - Firebase 탐색 및 관리  (0) 2018.12.20
MySQL - MySQL 관리  (0) 2018.12.15
SQL Server (mssql) - MSSQL 연결  (0) 2018.12.14
Redis console - Redis의 인스턴스 접속  (0) 2018.08.19

Redis console은 작업 영역에서 직접 Redis 명령을 실행할 수있는 기능을 제공합니다.


링크 : https://marketplace.visualstudio.com/items?itemName=kdcro101.vscode-redis







'DATABASE' 카테고리의 다른 글

Firebase Explorer - Firebase 탐색 및 관리  (0) 2018.12.20
MySQL - MySQL 관리  (0) 2018.12.15
SQL Server (mssql) - MSSQL 연결  (0) 2018.12.14
Mongo Runner - MongoDB의 인스턴스 접속  (0) 2018.08.28

+ Recent posts