Skip to content

A task runner for VSC based on atom-build-oracle implementation

License

Notifications You must be signed in to change notification settings

vitodcampanelli/odb-task

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oracle Database Tasks for VSC

Overview

The goal of this extension is to simplify the ability to run scripts against your database connections. It works around the concept of having a config file in the root of your project with a list of all your connection details.

Install

The extension is not currently published in the marketplace. To install, go to the releases within GitHub, and download the latest odb-task-*.vsix file. Then from the command line run the following:

code --install-extension odb-task-*.vsix

Set up

  1. Open your project
  2. Create a file in your project root named .build-oracle.json
  3. Update the contents per the below example
  4. Reload Code just to make sure everything is detected

Example config

[
    {
        "targetName": "DEV",
        "connectionString": "user/password@XE"
    }
]

Usage

Open the command palette and type Compile with. You will see two entries:

  1. Compile with SQL*Plus
  2. Compile with SQLcl

note: This extension doesn't ship with these binaries, so it assumes if you are running one or the other, the command is available on your system.

Choose the interpreter you wish to compile with.

You will prompted for which connection to compile against. Choose the connection name.

image

image

Configuration

As mentioned, this extension depends on the binaries for SQL*Plus or SQLcl being available on your system. These default to sqlplus and sql respectively. If these are not within your Path, or have been renamed to something else, you can set an alternative path/name within settings.

image

Author

Trent Schafer

LICENSE

MIT

About

A task runner for VSC based on atom-build-oracle implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%