Comments (3)
@opiation This is an excellent point. Also, save should call validate and return an error or a boolean when it fails now that validation is integrated with granite.
from granite.
@opiation Is this something you would like to work on? if not, @amberframework/granite-orm-contributors anyone want to work on this?
from granite.
I believe having Granite::ORM::Base#save
validate and return a boolean or error would indeed make Granite a little more ActiveRecord-like, though that seems already tracked separately in #81.
As for wanting to work on this, I'll review the contribution guide and my schedule. In that time however, I welcome anyone to take on the task as I may not have much time in the near future.
from granite.
Related Issues (20)
- Getting WARNING: Unsupported BIO ctrl call (76) message HOT 5
- Is Granite still being maintained? HOT 1
- through in has_many doesn't work HOT 2
- Suggest add update_all and destroy_all methods
- Looking for maintainers HOT 2
- Doesn't work in Crystal 1.4.0 HOT 2
- `update` should only update changed fields on record HOT 4
- MySQL: After a certain amount of time/transactions connections freeze during spec tests HOT 4
- Feature: Automatic Connection Switching & Horizontal Sharding
- table.cr quotes things in a bad way HOT 1
- Feature: Do not require specifying connection if there is only 1 available. HOT 1
- Add support for multiple database connections & roles for PG via connection string
- UUID's as Primary Keys
- Import data maintaining timestamps HOT 3
- failed to start when use sqlite HOT 3
- Add `reload` method
- #to_yaml test fails on M1 Mac HOT 7
- Upgrade ameba shard to latest version HOT 2
- Can't subclass a subclass of Granite::Base? HOT 1
- Error creating record.
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 granite.