| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Database.Bolty.Value.Helpers
Description
Internal module. Not part of the public API.
Synopsis
- isTinyInt :: Integral a => a -> Bool
- isTinyWord :: Word8 -> Bool
- isTinyText :: Word8 -> Bool
- isTinyList :: Word8 -> Bool
- isTinyDict :: Word8 -> Bool
- isTinyStruct :: Word8 -> Bool
- isNull :: Word8 -> Bool
- isBool :: Word8 -> Bool
- isInt :: Word8 -> Bool
- isDouble :: Word8 -> Bool
- isDict :: Word8 -> Bool
- isText :: Word8 -> Bool
- isList :: Word8 -> Bool
- isStruct :: Word8 -> Bool
- isNewVersion :: Word32 -> Bool
- versionMajor :: Word32 -> Word8
- versionMinor :: Word32 -> Word8
- supportsLogonLogoff :: Word32 -> Bool
- supportsTelemetry :: Word32 -> Bool
- nullCode :: Word8
- falseCode :: Word8
- trueCode :: Word8
- int8Code :: Word8
- int16Code :: Word8
- int32Code :: Word8
- int64Code :: Word8
- doubleCode :: Word8
- textConst :: Word8
- text8Code :: Word8
- text16Code :: Word8
- text32Code :: Word8
- listConst :: Word8
- list8Code :: Word8
- list16Code :: Word8
- list32Code :: Word8
- dictConst :: Word8
- dict8Code :: Word8
- dict16Code :: Word8
- dict32Code :: Word8
- structConst :: Word8
- struct8Code :: Word8
- struct16Code :: Word8
- sigNode :: Word8
- sigRel :: Word8
- sigURel :: Word8
- sigPath :: Word8
- sigDate :: Word8
- sigTime :: Word8
- sigLocalTime :: Word8
- sigDateTime :: Word8
- sigDateTimeZoneId :: Word8
- sigLocalDateTime :: Word8
- sigDuration :: Word8
- sigPoint2D :: Word8
- sigPoint3D :: Word8
- sigInit :: Word8
- sigHello :: Word8
- sigRun :: Word8
- sigAFail :: Word8
- sigReset :: Word8
- sigDAll :: Word8
- sigPAll :: Word8
- sigGBye :: Word8
- sigSucc :: Word8
- sigFail :: Word8
- sigRecs :: Word8
- sigIgn :: Word8
- toInt :: Integral a => a -> Int
- getSize :: Word8 -> Int
- inRange :: Ord a => (a, a) -> a -> Bool
- isIntX :: Integral x => x -> x -> Bool
Checkers
isTinyInt :: Integral a => a -> Bool Source #
Check whether a value fits in the PackStream tiny integer range [-16, 127].
isTinyWord :: Word8 -> Bool Source #
Check whether a tag byte represents a tiny word (inline integer).
isTinyText :: Word8 -> Bool Source #
Check whether a tag byte represents a tiny text (length embedded in tag).
isTinyList :: Word8 -> Bool Source #
Check whether a tag byte represents a tiny list (length embedded in tag).
isTinyDict :: Word8 -> Bool Source #
Check whether a tag byte represents a tiny dictionary (length embedded in tag).
isTinyStruct :: Word8 -> Bool Source #
Check whether a tag byte represents a tiny structure (length embedded in tag).
isNewVersion :: Word32 -> Bool Source #
Check whether a negotiated version uses the new (v3+) handshake format.
Version helpers
versionMajor :: Word32 -> Word8 Source #
Extract the major version from a negotiated version Word32. The server responds with [0, 0, minor, major].
versionMinor :: Word32 -> Word8 Source #
Extract the minor version from a negotiated version Word32.
supportsLogonLogoff :: Word32 -> Bool Source #
Bolt 5.1+ uses LOGON/LOGOFF instead of credentials in HELLO.
supportsTelemetry :: Word32 -> Bool Source #
Bolt 5.4+ supports the TELEMETRY message.
Constants
doubleCode :: Word8 Source #
Tag bytes for integer and double encodings.
text16Code :: Word8 Source #
Tag bytes for text encodings (tiny base and sized variants).
text32Code :: Word8 Source #
Tag bytes for text encodings (tiny base and sized variants).
list16Code :: Word8 Source #
Tag bytes for list encodings (tiny base and sized variants).
list32Code :: Word8 Source #
Tag bytes for list encodings (tiny base and sized variants).
dict16Code :: Word8 Source #
Tag bytes for dictionary encodings (tiny base and sized variants).
dict32Code :: Word8 Source #
Tag bytes for dictionary encodings (tiny base and sized variants).
structConst :: Word8 Source #
Tag bytes for structure encodings (tiny base and sized variants).
struct8Code :: Word8 Source #
Tag bytes for structure encodings (tiny base and sized variants).
struct16Code :: Word8 Source #
Tag bytes for structure encodings (tiny base and sized variants).
Structure signature bytes for graph types (Node, Relationship, UnboundRelationship, Path).
Structure signature bytes for graph types (Node, Relationship, UnboundRelationship, Path).
Structure signature bytes for graph types (Node, Relationship, UnboundRelationship, Path).
Structure signature bytes for graph types (Node, Relationship, UnboundRelationship, Path).
sigLocalTime :: Word8 Source #
Structure signature bytes for temporal types.
sigDateTime :: Word8 Source #
Structure signature bytes for temporal types.
sigDateTimeZoneId :: Word8 Source #
Structure signature bytes for temporal types.
sigLocalDateTime :: Word8 Source #
Structure signature bytes for temporal types.
sigDuration :: Word8 Source #
Structure signature bytes for temporal types.
sigPoint2D :: Word8 Source #
Structure signature bytes for spatial point types.
sigPoint3D :: Word8 Source #
Structure signature bytes for spatial point types.