-
Notifications
You must be signed in to change notification settings - Fork 47
/
postgresql_cursor.gemspec
40 lines (35 loc) · 1.56 KB
/
postgresql_cursor.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "postgresql_cursor/version"
Gem::Specification.new do |spec|
spec.name = "postgresql_cursor"
spec.version = PostgresqlCursor::VERSION
spec.authors = ["Allen Fair"]
spec.email = ["[email protected]"]
spec.summary = <<-SUMMARY
ActiveRecord PostgreSQL Adapter extension for using a cursor to return a
large result set
SUMMARY
spec.description = <<-DESCRIPTION
PostgreSQL Cursor is an extension to the ActiveRecord PostgreSQLAdapter for
very large result sets. It provides a cursor open/fetch/close interface to
access data without loading all rows into memory, and instead loads the result
rows in 'chunks' (default of 1_000 rows), buffers them, and returns the rows
one at a time.
DESCRIPTION
spec.homepage = "http://github.com/afair/postgresql_cursor"
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency "activerecord", ">= 6.0"
# spec.add_development_dependency "activerecord", "~> 6.1"
# spec.add_development_dependency "activerecord", "~> 7.0"
# PG dependency held back for Jruby. See pg_jruby or jdbc-postgres-adapter gems.
spec.add_development_dependency "pg" unless RUBY_PLATFORM == "java"
spec.add_development_dependency "irb"
spec.add_development_dependency "minitest"
spec.add_development_dependency "rake"
spec.add_development_dependency "appraisal"
end