aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--examples/index.html7
-rw-r--r--examples/isRoute.js3
-rw-r--r--examples/src.js11
4 files changed, 1 insertions, 22 deletions
diff --git a/README.md b/README.md
index ad6d27428..667754673 100644
--- a/README.md
+++ b/README.md
@@ -2069,7 +2069,7 @@ TLDR:
- [`Statement.get(...optionalParamsToBind)`](#statementget) returns the first row as an object
- [`Statement.run(...optionalParamsToBind)`](#statementrun) runs the statement and returns nothing
- [`Statement.finalize()`](#statementfinalize) closes the statement
-- [`Statement.toString()`](#statementtostring--) prints the expanded SQL, including bound parameters
+- [`Statement.toString()`](#statementtostring) prints the expanded SQL, including bound parameters
- `get Statement.columnNames` get the returned column names
- `get Statement.paramsCount` how many parameters are expected?
diff --git a/examples/index.html b/examples/index.html
deleted file mode 100644
index 3bb25f55e..000000000
--- a/examples/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <script type="module" src="REPLACE_ME"></script>
- </head>
- <body></body>
-</html>
diff --git a/examples/isRoute.js b/examples/isRoute.js
deleted file mode 100644
index d1717a0e9..000000000
--- a/examples/isRoute.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export function isRoute(expr, env) {
- return env.url.pathname.includes(expr.arguments[0].toString());
-}
diff --git a/examples/src.js b/examples/src.js
deleted file mode 100644
index ad9fda6f4..000000000
--- a/examples/src.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import { getProducts } from "macro:./getProducts.js";
-import { isRoute } from "macro:./isRoute.js";
-
-if (isRoute("/rickroll")) {
- document.body.innerHTML = `<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`;
-} else if (isRoute("/products")) {
- const products = getProducts({ ProductName: "name", Id: "id" });
- document.body.innerHTML = `<ul>${products
- .map(({ name, id }) => `<li>${name}</li>`)
- .join("")}</ul>`;
-}