ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Advanced PLSQL

by TheEggi ST3

Advanced Sublime Text package for editing and building Oracle SQL and PL/SQL

Details

  • 0.1.7
  • github.​com
  • 4 months ago
  • 2 hours ago
  • 7 years ago

Installs

  • Total 20K
  • Win 15K
  • Mac 3K
  • Linux 2K
Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19
Windows 3 5 4 3 1 2 3 3 4 1 0 2 1 7 7 1 2 3 0 5 5 4 4 5 1 2 2 7 4 7 5 1 2 3 5 3 11 3 1 2 3 6 5 3 4 4
Mac 0 2 0 0 1 0 0 1 1 1 0 0 0 1 1 0 1 1 0 0 1 2 1 1 2 2 0 0 2 0 0 2 1 1 0 1 0 0 0 0 0 1 2 0 1 1
Linux 0 0 1 1 0 1 1 0 0 0 0 1 3 2 0 1 1 2 1 1 3 0 0 0 0 0 0 1 3 0 0 0 1 1 1 0 0 0 0 0 1 0 2 0 1 1

Readme

Source
raw.​githubusercontent.​com

Sublime Text 3 pkackage for editing Oracle SQL and PL/SQL

Language definition and execution utilities for Oracle PL/SQL files. It is based on the bundle http://code.google.com/p/oracle-textmate-bundle/

Install

  • Download and extract package. Place it in C:\Users...\AppData\Roaming\Sublime Text 3\Packages\
  • Install keymaps for the commands (see Example.sublime-keymap for my preferred keys)

Build

To execute your PL/SQL source on your schema with ST3 Build command, you have to create a .sublime-build in your ST3 Users folder file containing something like::

{
        "selector": "source.plsql.oracle",
        "target": "oracle_exec",
        "variants":
        [
            {
                "dsn": "USERNAME/PASSWORD@SCHEMANAME2",
                "name": "COMMON SCHEMA 1"
            },
            {
                "dsn": "USERNAME/PASSWORD@SCHEMANAME2",
                "name": "COMMON SCHEMA 2"
            }
        ]
    }

Some other useful settings

I'm using TOAD standards iof the PLSQL file extentions. To be able to switch between package specification (.pks) and package body (.pkb) file add “pks” and “pkb” to the switch_file commant in the users keymap

{ 
  "keys": ["alt+o"], 
  "command": "switch_file", 
  "args": {
     "extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm", "pkb", "pks"]
   } 
}