Skip to main content

Using vsql with emacs

  • July 17, 2015
  • 4 replies
  • 29 views

timolin

Has anyone successfully configured vsql extension for the emacs editor?  My experience is that using theJDBC drivers is not as good as accessing directly through vsql, but I'm growing tired of copying and pasting from editor to command line.  

 

I've seen a number of old posts on the web on this, but so far, I haven't gotten it to work. 

 

Thanks!

4 replies

sKwa
Forum|alt.badge.img+1
  • Participating Frequently
  • July 17, 2015

Hi!

 

 

While I'm a vim user(not Emacs) I didn't found any issue to configure Emacs with Vertica. 

Where did you stack?

 

 

Example of session thru Emacs:

https://www.youtube.com/watch?v=RNte33YOf5k

 

[UPDATE]

Sorry, command line cutted on video. I used a standard plugin for PostgreSQL sql-postgres.

 

Here is a guides I used:

 

---

Daniel


timolin
  • Author
  • Participating Frequently
  • July 24, 2015

Thanks.  Well, I just tried again, and it works for me now:

 

Dowloaded vsql.el and placed it in ~/.emacs.d/

Added (add-to-list 'load-path "~/.emacs.d") in ~/.emacs

Added (load "vsql") in ~/.emacs

 

 I'm on CentOS 6.5 


sKwa
Forum|alt.badge.img+1
  • Participating Frequently
  • July 25, 2015

timolin
  • Author
  • Participating Frequently
  • July 30, 2015

Yes, of couse.  Credit goes to Andrew Lamb for this.  Thanks!