Comments (2)
Is it possible to base the decoders in this library:
https://github.com/denodrivers/postgres/blob/main/query/decode.ts
off this file:?
https://github.com/brianc/node-pg-types/blob/master/lib/textParsers.js#L143
from postgres.
After consideration, numeric is not safe to automatically parse to float or int due to value storage limits of the JS ints and floats. So, the proper approach is to return a string and give the developers an API that allows them to control the numeric type parsing as they need.
from postgres.
Related Issues (20)
- Looking for mantainers HOT 5
- Date getting cast as the wrong date HOT 1
- BrokenPipe: Broken pipe (os error 32) not handled in reconnect logic HOT 4
- calling createTransaction without a name creates an invalid transaction
- Add missing postgres types mapping / decoders / parser
- suggestion: complete documentation HOT 4
- Option to control driver data return decoding strategy
- InvalidWorkerCreation: worker boot error HOT 3
- Dead link to docs in README HOT 2
- Remove error tag version HOT 1
- Add tag pattern regex
- Suppost for `using` and `async using` syntax HOT 2
- Standardize SQL database interface for TS/JS HOT 5
- Support Set as bind parameter HOT 1
- There is a bug in pool when connection cannot be established at pool start HOT 3
- JSR Outdated
- Convert source to JSR dependencies
- Rename JSR package? HOT 2
- ConnectionError: The session was terminated unexpectedly
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.