sugilog / active_record_handlersocket Goto Github PK
View Code? Open in Web Editor NEWHandlerSocket for ActiveRecord.Easy-to-use handlersocket from existing ActiveRecord Models
License: MIT License
HandlerSocket for ActiveRecord.Easy-to-use handlersocket from existing ActiveRecord Models
License: MIT License
Calling ActiveRecord::Base.handlersocket
, columns should not be required.
Default using all columns from ActiveRecord::Base.column_names
limit but not limit for all of reuslt. limit for each result. name should semantic.
on ActiveRecord 4
DEPRECATION WARNING:
Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated,
please pass a symbol (:base) instead.
(called from <top (required)> at active_record_handlersocket/spec/configuration.rb:25)
find_all_by_xxx
after_initialize
and after_find
overridemethod missing tests
Logging support like ActiveRecord::Base logger for debug.
Finding records with hsfind_multi
using multi column index raise error.
>> Person.hsfind_multi_by_age([36, 1])
TypeError: can't convert Array into String
from /home/admin/workspace/active_record_handlersocket/lib/active_record_handlersocket/finder.rb:40:in `execute_multi'
from /home/admin/workspace/active_record_handlersocket/lib/active_record_handlersocket/finder.rb:40:in `hsfind'
from /home/admin/workspace/active_record_handlersocket/lib/active_record_handlersocket/finder.rb:11:in `method_missing'
from /home/admin/workspace/active_record_handlersocket/vendor/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/base.rb:2002:in `method_missing'
from (irb):3
on RSpec 3
Deprecation Warnings:
Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated.
Use the new `:expect` syntax or explicitly enable `:should` instead.
Called from active_record_handlersocket/spec/cases/finder_spec.rb:356:in `block (4 levels) in <top (required)>'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
1 deprecation warning total
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.