Comments (3)
Keeping an unofficial driver updated seems much less risky than an unofficial fork.
If you're going to invest heavily in the ORM then most likely you won't be able to foresee the implementation details and bugs.
I've come to the conclusion that for large projects it's better to avoid an ORM and build on knowledge you see in the drivers as examples. Build your own "ORM" as you go along.
The general sense I get is that:
- Most CRUD operations are simple db calls.
- The complex calls usually are related to the relationships being complex and thus can be too complex or inefficient when using the ORM.
- The "magic features" such as validation, security, watching changes (update events), etc. can be handled separately don't cost more to implement in the long run - there are many libraries available to base on.
A few things that costs dev time with caminte ORM was:
- It's inefficient when following relationships as each relationship is a separate db call. eg:
Model.belongsTo(OtherModel...)
would do a select call. I you have a Collection this is not feasible for the whole list. Worse when the dependency has an intermediate table inModel.hasMany()
- The API was inconsistent. eg: It would error when no results for
findOne()
with a null error then didn't error forfind()
. This is a pain over time when you debug older code. - Implementation was incomplete and patchy.
- It was buggy and since inactive fixing bugs was not easy and cost more time than building the app.
Look out for these in the ORM you choose.
from caminte.
@haroldo-ok I don't believe there is composite key support. I'm using this for MySQL and haven't been able to use composite keys.
Also, I would suggest using another ORM as this project is no longer maintained for quite a while now. The last commit is: May 4, 2018
It has been the source of pain for one of the projects I'm working on that is using it (for over a year). At some point we will need to do a refactor to remove caminte.
from caminte.
Many thanks; I had also guessed as much; the only remaining options for Firebird ended up being:
- Using Objection.js plus an unnoficial driver: igorklopov/firebird-knex#4
- Using an unnoficial fork of TypeORM: https://github.com/haroldo-ok/typeorm-firebird
In both cases, it was necessary to fix bugs on the unnoficial implementations, in order to make them work, but work, they did. I guess that's business as usual for legacy support...
from caminte.
Related Issues (20)
- Mysql adapter models get reset after reconnection
- Json objects returned as strings for "memory" adapter
- support mysql2 driver
- Database Changes
- Database connection error handlers
- Mongoose driver never calls remove callback if no record to delete was found
- sql.js
- I cannot get each column that is specified in mongodb. HOT 1
- two or more database HOT 2
- promise is not return for all/find when asking for all records HOT 2
- MySQL Between Bug
- TypeError [ERR_INVALID_CALLBACK]: Callback must be a function HOT 4
- Electron Integration Example
- Any plan to support GraphQL? HOT 2
- OR clause in where condition not working
- Auxiliary map
- error using caminte -i -a mysql HOT 2
- MYSQL case sensitive comparison
- Domain camintejs.com expired HOT 2
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 caminte.