bolty-0.1.0.2: Haskell driver for Neo4j (BOLT protocol 4.4-5.4)
Safe HaskellNone
LanguageGHC2021

Database.Bolty.Connection.Connection

Description

Internal module. Not part of the public API.

Synopsis

Documentation

connect :: (MonadIO m, HasCallStack) => Bool -> Text -> Word16 -> Int -> m (Connection, Int) Source #

Open a raw TCP connection to the given host and port with optional TLS.

close :: (MonadIO m, HasCallStack) => Connection -> Int -> m () Source #

Close a raw TCP connection.

send :: (MonadIO m, HasCallStack) => Connection -> Int -> ByteString -> m () Source #

Send raw bytes over the connection with a timeout.

receiveBytestring :: (MonadIO m, HasCallStack) => Connection -> Int -> Int -> m ByteString Source #

Receive exactly size bytes from the connection with a timeout.

receiveBinary :: (HasEndianness a, MonadIO m, HasCallStack) => Connection -> Int -> Int -> m a Source #

Receive and decode a big-endian binary value from the connection.