Comments (4)
I'm not sure how that's true. There's no way database-js
can work against a local mysql database. Even if the protocol in the url you pass is mysql://..
we internally just use https
always since this library strictly interacts with PlanetScale over https.
Do you have more information about what you think happened?
from database-js.
Yeah it was just me beeing dumb, I was using a mysql connection string for a local database but in my app databasejs was used. So it tried to connect to localhost:443 - The only improvement i see is a validator of the url, so that if someone stumbles over the same issue, he directly knows whats the problem 😄
But if it's getting rejected then it's fine to 👍🏼
from database-js.
Ah, ok, yeah, that at least makes sense in that case then that it was trying to connect to a local https server. I think if anything, we should guard against a localhost
, but even that, arguably is valid. I've considered writing an HTTP proxy for a local mysql instance so database-js can be used locally against a local mysql. It's come up a few times, so think all around, this is just user error and misconfiguration. I don't think we can sensible validate anything.
from database-js.
Yeah your right, thanks for the quick feedback and have a good one 👍🏼
from database-js.
Related Issues (20)
- Strongly type "type" property of Field
- Type error fetch failed HOT 10
- Automatically handle seeing a port 3306 in a connection string HOT 4
- INVISIBLE columns showing up with SELECT * HOT 6
- feat: Support syntax helper for "bulk insert with parameters"
- Malformed interface Field HOT 1
- [Feature] A type can be defined for `rows` in the query result HOT 6
- json_object converts bigints to numbers HOT 2
- Weird error with FKC HOT 5
- Error: direct DDL is disabled. Shadow Databases not helping, Development Branches not helping HOT 4
- New tables not found in foreign key enabled cluster HOT 2
- bug: `BLOB` / `Buffer` input parameters result in corrupted data
- Simple `show tables` statement not cast correctly by default HOT 11
- UUIDs Get Returned Incorrectly HOT 2
- CF Hyperdrive support? HOT 5
- Bug with JSON columns on >=1.15.0 HOT 12
- Customising cast results in unexpected behaviour HOT 2
- Numbers returned as strings HOT 15
- CI for tagging and pushing releases
- VT12001: unsupported: subqueries in DML when using delete() with where that filters on relation field 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 database-js.