Giter VIP home page Giter VIP logo

sybase.vim's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=278

Follows is an adaption of sqlplus.vim written by Jamis Buck see http://vim.sourceforge.net/scripts/script.php?script_id=97
for the original. 

This script contains code required to execute SQL queries from withing VIM.  It uses sqsh (http://www.sqsh.org/) however it could trivially be adapted to use isql.  It is very ruff and ready but seems to offer required functionality.

Thanks to Jamis Buck for creating sqlplus.vim I am sure if you compair the code you will see how little I have had to do to get this code to work ;-) 

INSTRUCTIONS
============

Edit ~/.sqshrc and add the line \set semicolon_hack=1 

Save the code into a file and source from your .vimrc or use your favourate autoload system.

Edit the code to add the credentials for the databases you would like to connect to.

In highlight mode hit F8 to execute the hightlighed SQL.  It will cope with broken lines.

Hit F8 with no highlighted selection and VIM will prompt you for a database to connect to.


sybase.vim's People

Stargazers

 avatar

Watchers

 avatar  avatar  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.