~ubuntu-branches/ubuntu/vivid/ruby-sequel/vivid

« back to all changes in this revision

Viewing changes to lib/sequel/adapters/openbase.rb

  • Committer: Package Import Robot
  • Author(s): Dmitry Borodaenko, Dmitry Borodaenko, Cédric Boutillier
  • Date: 2013-08-10 18:38:17 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20130810183817-iqanz804j32i5myi
Tags: 4.1.1-1
[ Dmitry Borodaenko ]
* New upstream release.
* Standards-Version upgraded to 3.9.4 (no changes).
* Added Build-Depend on ruby-sqlite3.

[ Cédric Boutillier ]
* debian/control: remove obsolete DM-Upload-Allowed flag.
* use canonical URI in Vcs-* fields.
* debian/copyright: use DEP5 copyright-format/1.0 official URL for Format
  field.
* Update debian/watch. Thanks Bart Martens.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
          opts[:password]
15
15
        )
16
16
      end
 
17
 
 
18
      def disconnect_connection(c)
 
19
        c.disconnect
 
20
      end
17
21
      
18
 
      def execute(sql, opts={})
 
22
      def execute(sql, opts=OPTS)
19
23
        synchronize(opts[:server]) do |conn|
20
24
          r = log_yield(sql){conn.execute(sql)}
21
25
          yield(r) if block_given?
22
26
          r
23
27
        end
24
28
      end
25
 
      alias_method :do, :execute
26
 
 
27
 
      private
28
 
 
29
 
      def disconnect_connection(c)
30
 
        c.disconnect
31
 
      end
32
29
    end
33
30
    
34
31
    class Dataset < Sequel::Dataset