Package dev.gmitch215.bytebox.binding
Interface D1Database.D1Statement
- All Superinterfaces:
org.teavm.jso.JSObject
- Enclosing interface:
D1Database
public static interface D1Database.D1Statement
extends org.teavm.jso.JSObject
A prepared statement.
bind(Object...) returns a new statement rather than mutating this one, so a
prepared statement is reusable across bindings.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault D1Database.D1Resultall()Returns every matching row.org.teavm.jso.core.JSPromise<D1Database.D1Result> allRows()default D1Database.D1StatementBinds values to this statement's placeholders.default TSObjectfirst()Returns the first row, ornullwhen the query matched nothing.default TSObjectReads one column of the first row.org.teavm.jso.core.JSPromise<TSObject> firstColumn(String column) org.teavm.jso.core.JSPromise<TSObject> firstRow()default D1Database.D1Resultrun()Returns the outcome of a statement whose rows are not wanted.org.teavm.jso.core.JSPromise<D1Database.D1Result> Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
bind
Binds values to this statement's placeholders.- Parameters:
values- the values, one per?- Returns:
- a bound statement
-
all
Returns every matching row.- Returns:
- every matching row
-
first
Returns the first row, ornullwhen the query matched nothing.- Returns:
- the first row, or
nullwhen the query matched nothing
-
first
Reads one column of the first row.- Parameters:
column- the column name- Returns:
- the value, or
nullwhen the query matched nothing
-
run
Returns the outcome of a statement whose rows are not wanted.- Returns:
- the outcome of a statement whose rows are not wanted
-
allRows
org.teavm.jso.core.JSPromise<D1Database.D1Result> allRows() -
firstRow
org.teavm.jso.core.JSPromise<TSObject> firstRow() -
firstColumn
-
runStatement
org.teavm.jso.core.JSPromise<D1Database.D1Result> runStatement()
-