Skip to content

SQLSmallInteger

[Source]

The internal class which represents an Integer (I16)

class ref SQLSmallInteger is
  SQLType ref

Implements


Constructors

create

[Source]

new ref create()
: SQLSmallInteger ref^

Returns


Public Functions

write

[Source]

Write an I16 to this buffer as a string. The string will fit as we defined the buffer to be characters on initialization.

Will return true if written and verification succeeds.

Will return false if the string is too long for the buffer or the readback doesn't match for some other reason.

fun ref write(
  i16: I16 val)
: Bool val

Parameters

Returns


read

[Source]

Read the value of the buffer and convert it into an I16.

This function is partial just in case the string version that comes from the database is not within the I16 range.

NOTE: SQLite does not enforce type limits, so if you use that specific ODBC driver, this is something that must be verified.

fun ref read()
: I16 val ?

Returns