Merge 'bindings/javascript: Add source property to Statement' from Anton Harniakou

Let's you get the source string that was used to create the prepared
statement.

Reviewed-by: Diego Reis (@el-yawd)

Closes #1670
This commit is contained in:
Jussi Saurio 2025-06-09 08:24:47 +03:00
commit 94e334a44a
3 changed files with 21 additions and 0 deletions

View file

@ -178,10 +178,18 @@ class Statement {
return this;
}
get source() {
return this.stmt.source;
}
get reader() {
throw new Error("not implemented");
}
get source() {
return this.stmt.source;
}
get database() {
return this.db;
}