Comments (4)
you have a url with the word "port" instead of numbers.. Just remove dthe url, it looks like you are using the options object.
from postgres.
well you're supposed to replace the connection detail placeholders with actual values.
from postgres.
I think the example code is not clear enough, but the explanation is, which makes it a bit confusing. You could split the code in two, one showing only the formatted URL and the other just the options object.
from postgres.
You're welcome to make a PR, but remember it should be understandable in most cases, not just the understandig you have.
I also think the error message you get is fairly clear, so not super high priority imo. The docs do require some level of understanding of hostnames, ports and urls.
from postgres.
Related Issues (20)
- Ability to inspect query fragments without database connection HOT 1
- Timeout issue when using with Bun HOT 12
- [question] How to get the query string before execution? HOT 3
- Nested arrays aren't expanded properly in 3.4.3 HOT 1
- Unable to parse Default Var on ALTER TABLE
- Unexpected Server Error Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'cloudflare:' HOT 2
- arbitrary UNSAFE_TRANSACTION errors when using sql.begin HOT 1
- Connect-Timeout Behavior - Include Waiting for Connection Pool HOT 1
- convert a specific column when reading or writing to the database HOT 2
- nested transactions HOT 1
- arbitrary stuck queries HOT 6
- Next.js: Error: A "use server" file can only export async functions. Found "sql" that is not an async function. HOT 2
- Certain transaction errors are swallowed HOT 11
- Setting max: undefined results in only 1 connection being created
- ERROR: could not load library HOT 2
- Inserting raster data?
- Unable to insert values of type `bigint[]`
- Error while inserting a JSON array (if object contains the key "type")
- Not available on jsr.io 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 postgres.