method StatementSync.prototype.get
Overload 1
#StatementSync.prototype.get(...anonymousParameters: SupportedValueType[]): unknownThis method executes a prepared statement and returns the first result as an
object. If the prepared statement does not return any results, this method
returns undefined. The prepared statement parameters are bound using the
values in namedParameters and anonymousParameters.
Parameters #
#<span>...anonymousParameters</span>: SupportedValueType[]Return Type #
unknownAn object corresponding to the first row returned by executing the prepared statement. The keys and values of the object correspond to the column names and values of the row. If no
rows were returned from the database then this method returns undefined.
Overload 2
#StatementSync.prototype.get(namedParameters: Record<string, SupportedValueType>,...anonymousParameters: SupportedValueType[],): unknownParameters #
#namedParameters: Record<string, SupportedValueType>#<span>...anonymousParameters</span>: SupportedValueType[]Return Type #
unknown