Sha256: f1a1a863ccc131cb1d126949e5d14b78f4c9061f1be227eca85a5c1660627776

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

module ::Libsql
  ##
  # A base class for use in creating your own progress handler classes
  #
  class ProgressHandler
    def to_proc
      self
    end

    # the arity of the call method
    def arity() 0 ; end

    ##
    # Override this method, returning +false+ if the SQLite should act as if
    # +interrupt!+ had been invoked.
    # 
    def call
      raise NotImplementedError, "The progress handler call() method must be implemented"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libsql-0.1.0-x64-mingw-ucrt lib/libsql/progress_handler.rb
libsql-0.1.0-x64-mingw32 lib/libsql/progress_handler.rb
libsql-0.1.0-x86-mingw32 lib/libsql/progress_handler.rb
libsql-0.1.0 lib/libsql/progress_handler.rb