Skip to content

tutysara/ejc-sql-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-ejc-sql layer

img/my-ejc-sql.png

Table of Contents

Description

This layer provides support for ejc-sql which turns Emacs into simple SQL client

  • Uses JDBC connection to databases via clojure/java.jdbc lib
  • Use multiple connections at the same time
  • Autocompletion and basic SQL scripts formatting are also available.

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add my-ejc-sql to the existing dotspacemacs-configuration-layers list in this file.

Connections are defined in ~/.my-ejc-sql-connections.el. Can be overridden by setting (setq *my-ejc-sql-connections-file* "~/connections.el")

Key bindings

Key BindingDescription
SPC m x xEvaluate SQL/JPQL script bounded by the `ejc-sql-separator` or/and buffer boundaries
SPC m x rEvaluate SQL/JPQL statements in selected region
SPC m t dDescribe SQL table
SPC m rShow last result
SPC m l tShow tables list
SPC m a sStrip SQL (trim java string tokens)
SPC m a jDress SQL (to copy-paste it to java code)
SPC m cConnect to database for current buffer
SPC m qClose all database connections, quit Clojure REPL
SPC m a fFormat SQL
SPC m mMark SQL script bounded by the `ejc-sql-separator` or/and buffer boundaries
SPC m l cShow constraints list
SPC m l pShow procedures list
SPC m LOpen log
SPC m bCreate buffer with `ejc-sql-mode`
SPC m CClean your current connection cache (database owners and tables list)

About

ejc sql layer for spacemacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published