jvalue / node-dry-pg Goto Github PK
View Code? Open in Web Editor NEWReusable nodejs pg util library
License: Apache License 2.0
Reusable nodejs pg util library
License: Apache License 2.0
There are only two hard things in Computer Science: cache invalidation and naming things.
I would propose to change the name of the exported PostgresRepository
class. For me, the Repository
part does imply that it has something to do with the Repository design pattern. But that's not the case, because the class does neither have domain nor data mapping knowledge. Instead, it is just a tiny wrapper around the pg
library.
I would change the name to PostgresDatabase
or PostgresClient
. @georg-schwarz what do you think about that or do you have other name suggestions?
Hey folks, how do we want to handle dependencies in our DRY packages?
We could bundle with the dependencies and export it. This would mean only our package has to be imported and here the pg package is also available in using projects. However, I think this is a bad style, right? However, this would make sure that pg is compatible with the right version with our helpers.
We could also add no runtime dependency but just add types (and the dependency if necessary for testing) as dev dependencies. This would keep the package smaller, but the client has to add here the pg dependency itself. This could lead to situations where we get out of sync with the pg version. However, I guess it would be cleaner?
@lunedis @mathiaszinnen @MBuchalik @jsone-studios Opinions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.