Comments (4)
So is there something I am suppose to do with this? Seems like more of a statement.
from mongomapper.
Oops, just me not paying enough attention when writing a ticket ;)
I guess the question is, can we add support for large ints? It seems the Integer key raises the mongo driver 4-bit int error. The typecast method in key.rb just seems to pass this on the Int so it may be the driver. I've not had time to dig further. Any thoughts?
from mongomapper.
I don't really know much on the subject. I'd hit up the mongodb mailing list about best way to store big ints and we can go from there.
from mongomapper.
Longs are now supported by the ruby driver. That with the combination of keys with no type means you could use longs now with mongomapper if you just do something like this:
class Foo
include MongoMapper::Document
key :somelongint
end
Foo.new.somelongint = 9223372036854775807 # or whatever
Also, this is kind of duplicate with ticket #55.
from mongomapper.
Related Issues (20)
- Database cleaner? HOT 1
- release 0.14.x HOT 2
- Support for mongoldb 3.4 HOT 2
- sinatra installtion instructions out of date HOT 7
- is it possible to set collection name dynamically?
- ArgumentError: wrong number of arguments (given 2, expected 1) HOT 2
- Mongo authentication error HOT 1
- Model key with name "attributes" not works HOT 1
- Mongo::Error::OperationFailure
- stack level too deep with large embedded document HOT 2
- default option for key doesn't work since #678 HOT 1
- Is there any plan to setup GitHub Sponsor for mongomapper?
- Up Test Coverage to 100%
- Fix warnings on ERB.new with Ruby 3.1 HOT 4
- Time#to_s(:number) is deprecated in Rails 7.0
- Coveralls coverage decreased 0.0% without any changes HOT 1
- Drop Ruby 2.4 support?
- Defaults values for embedded documents with subclasses no longer with on 0.15 HOT 12
- Will drop Rails 5.x support
- _parent_document not set on subclasses of embedded documents 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 mongomapper.