Class: Tuple

reactive-pg-client-js/tuple~ Tuple

new Tuple()

A general purpose tuple.
Source:

Methods

addBoolean(value) → {Tuple}

Add a boolean value at the end of the tuple.
Parameters:
Name Type Description
value boolean the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addBuffer(value) → {Tuple}

Add a buffer value at the end of the tuple.
Parameters:
Name Type Description
value Buffer the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addDouble(value) → {Tuple}

Add a double value at the end of the tuple.
Parameters:
Name Type Description
value number the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addFloat(value) → {Tuple}

Add a float value at the end of the tuple.
Parameters:
Name Type Description
value number the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addInteger(value) → {Tuple}

Add an integer value at the end of the tuple.
Parameters:
Name Type Description
value number the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addJson(value) → {Tuple}

Add a json value at the end of the tuple.
Parameters:
Name Type Description
value Json the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addLong(value) → {Tuple}

Add a long value at the end of the tuple.
Parameters:
Name Type Description
value number the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addShort(value) → {Tuple}

Add a short value at the end of the tuple.
Parameters:
Name Type Description
value number the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addString(value) → {Tuple}

Add a string value at the end of the tuple.
Parameters:
Name Type Description
value string the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

addValue(value) → {Tuple}

Add an object value at the end of the tuple.
Parameters:
Name Type Description
value Object the value
Source:
Returns:
a reference to this, so the API can be used fluently
Type
Tuple

clear()

Source:

getBoolean(pos) → {boolean}

Get a boolean value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
boolean

getBuffer(pos) → {Buffer}

Get a buffer value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
Buffer

getDouble(pos) → {number}

Get a double value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
number

getFloat(pos) → {number}

Get a float value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
number

getInteger(pos) → {number}

Get an integer value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
number

getJson(pos) → {Json}

Get a json value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
Json

getLong(pos) → {number}

Get a long value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
number

getShort(pos) → {number}

Get a short value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
number

getString(pos) → {string}

Get a string value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
string

getValue(pos) → {Object}

Get an object value at pos.
Parameters:
Name Type Description
pos number the position
Source:
Returns:
the value or null
Type
Object

size() → {number}

Source:
Returns:
the tuple size
Type
number