Sha256: 4396934df7160ff42d8a51da865426a1f52943ed705b26d2f7fdb4a13f68db94
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
[](https://badge.fury.io/rb/ass_ole-snippets-shared) # AssOle::Snippets::Shared Shared ole snippets for [ass_ole](https://github.com/leoniv/ass_ole) ## Installation Add this line to your application's Gemfile: ```ruby gem 'ass_ole-snippets-shared' ``` And then execute: $ bundle Or install it yourself as: $ gem install ass_ole-snippets-shared ## Example ```ruby require 'ass_ole' require 'ass_ole/snippets/shared' require 'ass_maintainer/info_base' # External connection runtime module ExternalRuntime is_ole_runtime :external end class Worker like_ole_runtime ExternalRuntime include AssOle::Snippets::Shared::Query def initialize(connection_string) ole_runtime_get.run AssMaintainer::InfoBase.new('ib_name', connection_string) end def select(value) query('select &arg as arg', arg: value).Execute.Unload.Get(0).arg end end Worker.new('File="path"').select('Hello') #=> "Hello" ``` ## Testing $ export SIMPLECOV=YES && rake test ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/leoniv/ass_ole-snippets-shared.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ass_ole-snippets-shared-0.5.0 | README.md |