mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-23 20:35:00 +00:00
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:
commit
94e334a44a
3 changed files with 21 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue