GithubHelp home page GithubHelp logo

oraclesql's Introduction

Sublime Text 3 package 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

Install with Package Control

Install and configure Package Control, if you haven't already done so, then:

  • CTRL+SHIFT+PPackage Control: Add Repository
  • Add the following URL: https://github.com/frenchesco/OracleSQL.git
  • CTRL+SHIFT+PPackage Control: Install PackageOracleSQL

Manual Install

  • Download and extract package. Rename folder from Oracle-master to OracleSQL and place in %APPDATA%\Sublime Text 3\Packages for a normal installation or SublimeText3\Data\Packages for a portable installation.
  • 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::

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

You can also specify what build system to use for a specific project. Just go CTRL+SHIFT+P (Windows) or CMD+SHIFT+P (Mac) → Project: Edit

{
    "folders":
    [
        {
            "follow_symlinks": true,
            "name": "PROJECTNAME",
            "path": "C:\\path\\to\\project"
        }
    ],
    "build_systems":
    [
        {
            "name": "SCHEMANAME",
            "target": "oracle_exec",
            "selector": "source.plsql.oracle, source.sql",
            "dsn": "USERNAME/PASSWORD@DATABASENAME"
        }
    ]
}

Other Settings

The following will allow you to setup Key Mappings in Sublime Text for Switching between the Package Spec and Package Body in PL/SQL:

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

oraclesql's People

Contributors

bizoo avatar frenchesco avatar ilkin avatar jbjornson avatar kienz avatar tfcross avatar wolfmoritz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.