monet v0.0.9 Monet.Writer
Prepares and sends messages to the server. Should not be called directly from outside this library.
Link to this section Summary
Functions
Sends a command to the server. Commands appear to be queries with just an empty response. This should
Encodes a list of value to be sent as part of a prepare + exec flow. The types parameter is parsed from the response of the prepare statement. See Monet.Prepared for more information
Sends a query to the server. Except for a very few things that are considered "commands", almost everything is a query
Sends data
to the server.
Link to this section Functions
command(conn, command)
Sends a command to the server. Commands appear to be queries with just an empty response. This should
encode(values, types, acc \\ [])
Encodes a list of value to be sent as part of a prepare + exec flow. The types parameter is parsed from the response of the prepare statement. See Monet.Prepared for more information
encode_string(data)
query(conn, query)
Sends a query to the server. Except for a very few things that are considered "commands", almost everything is a query
send(conn, data)
Sends data
to the server.
MonetDB only accepts individual frames up to 8190 bytes. If our message is larger than this, it needs to be broken up.
Each frame has a 2 byte header. 1 bit of the header is used to indicate if this is the final frame of the message or not. The rest is used for the length.