Class: PreparedStatement

PreparedStatement(_preparedStatement)

new PreparedStatement(_preparedStatement)

Internal constructor. Use `Connection.prepare` to get a `PreparedStatement` object.
Parameters:
Name Type Description
_preparedStatement kuzu.sync.PreparedStatement the native prepared statement object.
Source:

Methods

close()

Close the prepared statement.
Source:
Throws:
if the prepared statement is closed.
Type
Error

getErrorMessage() → {String}

Get the error message if the prepared statement is not successfully prepared.
Source:
Throws:
if the prepared statement is closed.
Type
Error
Returns:
the error message.
Type
String

isSuccess() → {Boolean}

Check if the prepared statement is successfully prepared.
Source:
Throws:
if the prepared statement is closed.
Type
Error
Returns:
true if the prepared statement is successfully prepared.
Type
Boolean