Comments (4)
Is it possible that your function is creating an undefined input into the prepare statement? Clearly we need to catch this potential error, that but seems like it might be the cause (because if it were a valid string, then sql.trim() would be a function).
from js-tableland.
Definitely possible. I just wanted to share the error.
from js-tableland.
Looks like the value of statement
is [ undefined ]
, which obviously isn't a string. I'll open a PR to pass a more human friendly error message in a second.
from js-tableland.
fixed by #411
from js-tableland.
Related Issues (20)
- Having to choose a chain name for Database.readOnly() is confusing HOT 7
- [JST-12] 3rd Party: Test/add support for Drizzle ORM HOT 4
- SDK limits query size to 30009, not 35000 HOT 12
- RegExp used in prepareCreateTable isn't supported in safari (because of lookbehind)
- Test: We need end to end testing in browsers without our CI flows HOT 1
- RegExp used in bindValues isn't supported in safari (because of lookbehind)
- SDK does not work with default vite build setup (needs to be added as an optimizeDeps exclusion)
- [JST-4] Improve error messages
- [JST-1] Enable starting a local only sqlite instance in browser
- [JST-2] Use tableland WASM sql parser to ensure all SQL run on local only sqlite instance conforms to tableland sql spec
- [JST-3] Enable pulling tables from a tableland network into the local only database
- [JST-16] Scope out different approaches to namespacing HOT 6
- [JST-19] Readme Q/A cleanup of usage HOT 8
- [JST-23] Validator getTableById does not map chainId nor tableId HOT 2
- [JST-25] Add tests for alter table statements HOT 4
- [JST-26] Enable support for INSERT + GROUP BY subqueries HOT 1
- [JST-27] Enable subscribing to table changes
- [JST-32] aliases helper needs the "node:fs" package, but this breaks browser builds
- [JST-35] Fix: remove optimism-goerli-staging from chains HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-tableland.