class Neo4j::Bolt::Connection

Defined in:

neo4j/bolt/connection.cr

Constant Summary

EXCEPTIONS = {"Neo.ClientError.Schema.IndexAlreadyExists" => IndexAlreadyExists, "Neo.ClientError.Schema.ConstraintValidationFailed" => ConstraintValidationFailed}
GOGOBOLT = "``\xB0\u0017".to_slice
SUPPORTED_VERSIONS = {2, 0, 0, 0}

Constructors

Instance Method Summary

Constructor Detail

def self.new(url : String, ssl : Bool) #

[View source]
def self.new(url : String) #

[View source]
def self.new(uri : URI, ssl : Bool = true) #

[View source]
def self.new #

[View source]

Instance Method Detail

def close #

[View source]
def exec_cast(query : String, parameters : NamedTuple, types : Tuple(*TYPES)) forall TYPES #

[View source]
def exec_cast(query : String, parameters : Map, types : Tuple(*TYPES)) forall TYPES #

[View source]
def exec_cast(query : String, types : Tuple(*TYPES)) forall TYPES #

[View source]
def exec_cast(query : String, parameters : NamedTuple, types : Tuple(*TYPES), &) forall TYPES #

[View source]
def exec_cast(query : String, parameters : Map, types : Tuple(*TYPES), &) : Nil forall TYPES #

[View source]
def execute(query, parameters : Map, &block : List -> ) #

[View source]
def execute(_query, **parameters, &block : List -> ) #

[View source]
def execute(query, parameters : Map) #

[View source]
def execute(_query query, **params) #

[View source]
def reset #

If the connection gets into a wonky state, this method tells the server to reset it back to a normal state, but you lose everything you haven't pulled down yet.


[View source]
def stream(query, parameters = Hash(String, Type).new) #

[View source]
def stream(_query, **parameters) #

[View source]
def transaction(&) #

[View source]