Skip to content

hedengran/cypher-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Cypher and Neo4j Emacs package

Cypher-mode is an Emacs major mode for editing and running Cypher queries in Neo4j.

Overview

Running Neo4j

To run queries, cypher-mode requires an actively running Neo4j instance. If you don’t already have a Neo4j instance running in the background, you can launch a background process with `cypher-run-neo4j`.

Running queries

Queries can be sent from the buffer to `cypher-shell`. The simplest way of running a query in the buffer is to run `C-c C-c`, or `cypher-send-buffer-or-region`. If a region is currently highlighted, the function will send that region. Otherwise, it will send the entire **.

screenshots/cypher-mode.png

variabledefault valuedescription
cypher-default-database“neo4j”The default database.
cypher-current-databasecypher-default-databaseThe database that queries will be issued to. To current database, run function cypher-use-database.
cypher-usernamenilThe username used for connecting to the current database.
cypher-passwordnilThe password used for connecting to the current database.
cypher-neo4j-binary“neo4j”The name of the Neo4j binary. If the binary is not in the Emacs path, you should set this variable with a absolute path.
cypher-shell-binary“cypher-shell”The name of the cypher-shell binary. If the binary is not in the Emacs path, you should set this variable with a absolute path.
cypher-shell-verbose-outputtSet to nil for plain output.

Functions

functionkey bindingdescription
cypher-use-database (database-name)Update the targeted database to DATABASE-NAME for the current session.
cypher-set-username-password (username password)Configure the USERNAME and PASSWORD.
cypher-send-buffer-or-region (&optional b e)C-c C-cSend selected region, or entire buffer, to cypher-shell.
cypher-run-neo4j ()Launch Neo4j console in a background process.

About

Cypher-mode is an Emacs major mode for editing and running Cypher queries in Neo4j.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published