Skip to content

SQLVarchar

[Source]

The internal class which represents a CHAR, VARCHAR, or TEXT

class ref SQLVarchar is
  SQLType ref

Implements


Constructors

create

[Source]

new ref create(
  size: USize val)
: SQLVarchar ref^

Parameters

Returns


Public Functions

write

[Source]

Write a string to this buffer. The string MUST fit in the defined buffer.

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(
  str: String val)
: Bool val

Parameters

Returns


read

[Source]

Read the value of the buffer into a String iso^. This is an iso^ copy of the data so the buffer can remain in place and reused without rebinding.

fun ref read()
: String iso^ ?

Returns