colincasey-sequel 2.10.2 → 2.10.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +29 -70
- data/lib/sequel_core/adapters/shared/ms_access.rb +2 -0
- data/lib/sequel_core/adapters/utils/date_format.rb +21 -0
- data/lib/sequel_core/adapters/utils/stored_procedures.rb +75 -0
- data/lib/sequel_core/adapters/utils/unsupported.rb +43 -0
- data/lib/sequel_core/version.rb +12 -8
- metadata +127 -125
data/Rakefile
CHANGED
@@ -16,84 +16,49 @@ NAME = 'sequel'
|
|
16
16
|
VERS = Sequel.version
|
17
17
|
CLEAN.include ["**/.*.sw?", "pkg", ".config", "rdoc", "coverage", "www/public/*.html"]
|
18
18
|
RDOC_OPTS = ["--quiet", "--line-numbers", "--inline-source", '--title', \
|
19
|
-
|
19
|
+
'Sequel: The Database Toolkit for Ruby', '--main', 'README.rdoc']
|
20
20
|
|
21
21
|
# Gem Packaging and Release
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
p.need_tar = true
|
46
|
-
p.gem_spec = spec
|
47
|
-
end
|
48
|
-
|
49
|
-
desc "Install sequel gem"
|
50
|
-
task :install=>[:package] do
|
51
|
-
sh %{sudo gem install pkg/#{NAME}-#{VERS} --local}
|
52
|
-
end
|
53
|
-
|
54
|
-
desc "Install sequel gem without RDoc"
|
55
|
-
task :install_no_docs=>[:package] do
|
56
|
-
sh %{sudo gem install pkg/#{NAME}-#{VERS} --no-rdoc --no-ri --local}
|
57
|
-
end
|
58
|
-
|
59
|
-
desc "Uninstall sequel gem"
|
60
|
-
task :uninstall=>[:clean] do
|
61
|
-
sh %{sudo gem uninstall #{NAME}}
|
22
|
+
begin
|
23
|
+
require 'jeweler'
|
24
|
+
Jeweler::Tasks.new do |s|
|
25
|
+
s.name = NAME
|
26
|
+
s.rubyforge_project = 'sequel'
|
27
|
+
s.version = VERS
|
28
|
+
s.platform = Gem::Platform::RUBY
|
29
|
+
s.has_rdoc = true
|
30
|
+
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG", "COPYING"] + Dir["doc/*.rdoc"] + Dir['doc/release_notes/*.txt']
|
31
|
+
s.rdoc_options += RDOC_OPTS
|
32
|
+
s.summary = "The Database Toolkit for Ruby"
|
33
|
+
s.description = s.summary
|
34
|
+
s.author = "Jeremy Evans"
|
35
|
+
s.email = "code@jeremyevans.net"
|
36
|
+
s.homepage = "http://sequel.rubyforge.org"
|
37
|
+
s.required_ruby_version = ">= 1.8.4"
|
38
|
+
s.files = %w(COPYING CHANGELOG README.rdoc Rakefile) + Dir.glob("{bin,doc,spec,lib}/**/*")
|
39
|
+
s.require_path = "lib"
|
40
|
+
s.bindir = 'bin'
|
41
|
+
s.executables << 'sequel'
|
42
|
+
end
|
43
|
+
rescue LoadError
|
44
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
62
45
|
end
|
63
46
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
47
|
+
namespace :gem do
|
48
|
+
desc "install gem on windows"
|
49
|
+
task :install_windows => :build do
|
50
|
+
sh "gem install -l pkg/sequel-#{VERS}.gem"
|
51
|
+
end
|
69
52
|
end
|
70
53
|
|
71
54
|
### RDoc
|
72
|
-
|
73
55
|
Rake::RDocTask.new do |rdoc|
|
74
56
|
rdoc.rdoc_dir = "rdoc"
|
75
57
|
rdoc.options += RDOC_OPTS
|
76
58
|
rdoc.rdoc_files.add %w"README.rdoc CHANGELOG COPYING lib/**/*.rb doc/*.rdoc doc/release_notes/*.txt"
|
77
59
|
end
|
78
60
|
|
79
|
-
### Website
|
80
|
-
|
81
|
-
desc "Update Non-RDoc section of sequel.rubyforge.org"
|
82
|
-
task :website_base do
|
83
|
-
sh %{www/make_www.rb}
|
84
|
-
sh %{scp -r www/public/* rubyforge.org:/var/www/gforge-projects/sequel/}
|
85
|
-
end
|
86
|
-
|
87
|
-
desc "Update RDoc section of sequel.rubyforge.org"
|
88
|
-
task :website_rdoc=>[:rerdoc] do
|
89
|
-
sh %{scp -r rdoc/* rubyforge.org:/var/www/gforge-projects/sequel/rdoc/}
|
90
|
-
end
|
91
|
-
|
92
|
-
desc "Update sequel.rubyforge.org"
|
93
|
-
task :website=>[:website_base, :website_rdoc]
|
94
|
-
|
95
61
|
### Specs
|
96
|
-
|
97
62
|
lib_dir = File.join(File.dirname(__FILE__), 'lib')
|
98
63
|
fixRUBYLIB = Proc.new{ENV['RUBYLIB'] ? (ENV['RUBYLIB'] += ":#{lib_dir}") : (ENV['RUBYLIB'] = lib_dir)}
|
99
64
|
sequel_core_specs = "spec/sequel_core/*_spec.rb"
|
@@ -153,7 +118,6 @@ task :dcov do
|
|
153
118
|
end
|
154
119
|
|
155
120
|
### Statistics
|
156
|
-
|
157
121
|
STATS_DIRECTORIES = [
|
158
122
|
%w(Code lib/),
|
159
123
|
%w(Spec spec),
|
@@ -165,8 +129,3 @@ task :stats do
|
|
165
129
|
verbose = true
|
166
130
|
CodeStatistics.new(*STATS_DIRECTORIES).to_s
|
167
131
|
end
|
168
|
-
|
169
|
-
desc "Print Sequel version"
|
170
|
-
task :version do
|
171
|
-
puts VERS
|
172
|
-
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Module containing overrides for Sequel's standard date/time literalization
|
2
|
+
# to use the SQL standrd. The SQL standard is used by fewer databases than
|
3
|
+
# the defacto standard (which is just a normal string).
|
4
|
+
module Sequel::Dataset::SQLStandardDateFormat
|
5
|
+
private
|
6
|
+
|
7
|
+
# Use SQL standard syntax for Date
|
8
|
+
def literal_date(v)
|
9
|
+
v.strftime("DATE '%Y-%m-%d'")
|
10
|
+
end
|
11
|
+
|
12
|
+
# Use SQL standard syntax for DateTime
|
13
|
+
def literal_datetime(v)
|
14
|
+
v.strftime("TIMESTAMP '%Y-%m-%d %H:%M:%S'")
|
15
|
+
end
|
16
|
+
|
17
|
+
# Use SQL standard syntax for Time
|
18
|
+
def literal_time(v)
|
19
|
+
v.strftime("TIMESTAMP '%Y-%m-%d %H:%M:%S'")
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
module Sequel
|
2
|
+
class Dataset
|
3
|
+
module StoredProcedureMethods
|
4
|
+
SQL_QUERY_TYPE = Hash.new{|h,k| h[k] = k}
|
5
|
+
SQL_QUERY_TYPE[:first] = SQL_QUERY_TYPE[:all] = :select
|
6
|
+
|
7
|
+
# The name of the stored procedure to call
|
8
|
+
attr_accessor :sproc_name
|
9
|
+
|
10
|
+
# Call the prepared statement
|
11
|
+
def call(*args, &block)
|
12
|
+
@sproc_args = args
|
13
|
+
case @sproc_type
|
14
|
+
when :select, :all
|
15
|
+
all(&block)
|
16
|
+
when :first
|
17
|
+
first
|
18
|
+
when :insert
|
19
|
+
insert
|
20
|
+
when :update
|
21
|
+
update
|
22
|
+
when :delete
|
23
|
+
delete
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
# Programmer friendly string showing this is a stored procedure,
|
28
|
+
# showing the name of the procedure.
|
29
|
+
def inspect
|
30
|
+
"<#{self.class.name}/StoredProcedure name=#{@sproc_name}>"
|
31
|
+
end
|
32
|
+
|
33
|
+
# Set the type of the sproc and override the corresponding _sql
|
34
|
+
# method to return the empty string (since the result will be
|
35
|
+
# ignored anyway).
|
36
|
+
def sproc_type=(type)
|
37
|
+
@sproc_type = type
|
38
|
+
meta_def("#{sql_query_type}_sql"){|*a| ''}
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
# The type of query (:select, :insert, :delete, :update).
|
44
|
+
def sql_query_type
|
45
|
+
SQL_QUERY_TYPE[@sproc_type]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
module StoredProcedures
|
50
|
+
# For the given type (:select, :first, :insert, :update, or :delete),
|
51
|
+
# run the database stored procedure with the given name with the given
|
52
|
+
# arguments.
|
53
|
+
def call_sproc(type, name, *args)
|
54
|
+
prepare_sproc(type, name).call(*args)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Transform this dataset into a stored procedure that you can call
|
58
|
+
# multiple times with new arguments.
|
59
|
+
def prepare_sproc(type, name)
|
60
|
+
sp = clone
|
61
|
+
prepare_extend_sproc(sp)
|
62
|
+
sp.sproc_type = type
|
63
|
+
sp.sproc_name = name
|
64
|
+
sp
|
65
|
+
end
|
66
|
+
|
67
|
+
private
|
68
|
+
|
69
|
+
# Extend the dataset with the stored procedure methods.
|
70
|
+
def prepare_extend_sproc(ds)
|
71
|
+
ds.extend(StoredProcedureMethods)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
class Sequel::Dataset
|
2
|
+
# This module should be included in the dataset class for all databases that
|
3
|
+
# don't support INTERSECT or EXCEPT.
|
4
|
+
module UnsupportedIntersectExcept
|
5
|
+
# Raise an Error if EXCEPT is used
|
6
|
+
def except(ds, all=false)
|
7
|
+
raise(Sequel::Error, "EXCEPT not supported")
|
8
|
+
end
|
9
|
+
|
10
|
+
# Raise an Error if INTERSECT is used
|
11
|
+
def intersect(ds, all=false)
|
12
|
+
raise(Sequel::Error, "INTERSECT not supported")
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
# Since EXCEPT and INTERSECT are not supported, and order shouldn't matter
|
18
|
+
# when UNION is used, don't worry about parantheses. This may potentially
|
19
|
+
# give incorrect results if UNION ALL is used.
|
20
|
+
def select_compounds_sql(sql, opts)
|
21
|
+
return unless opts[:compounds]
|
22
|
+
opts[:compounds].each do |type, dataset, all|
|
23
|
+
sql << " #{type.to_s.upcase}#{' ALL' if all} #{subselect_sql(dataset)}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# This module should be included in the dataset class for all databases that
|
29
|
+
# don't support INTERSECT ALL or EXCEPT ALL.
|
30
|
+
module UnsupportedIntersectExceptAll
|
31
|
+
# Raise an Error if EXCEPT is used
|
32
|
+
def except(ds, all=false)
|
33
|
+
raise(Sequel::Error, "EXCEPT ALL not supported") if all
|
34
|
+
super(ds)
|
35
|
+
end
|
36
|
+
|
37
|
+
# Raise an Error if INTERSECT is used
|
38
|
+
def intersect(ds, all=false)
|
39
|
+
raise(Sequel::Error, "INTERSECT ALL not supported") if all
|
40
|
+
super(ds)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
data/lib/sequel_core/version.rb
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
TINY = 0
|
5
|
-
|
6
|
-
VERSION = [MAJOR, MINOR, TINY].join('.')
|
7
|
-
|
1
|
+
require 'yaml'
|
2
|
+
|
3
|
+
module Sequel
|
8
4
|
def self.version
|
9
|
-
|
5
|
+
@version ||= load_from_version_file
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.load_from_version_file
|
9
|
+
version_config = YAML.load_file(File.join(File.dirname(__FILE__), '..', '..', 'VERSION.yml'))
|
10
|
+
major = version_config[:major]
|
11
|
+
minor = version_config[:minor]
|
12
|
+
patch = version_config[:patch]
|
13
|
+
"#{major}.#{minor}.#{patch}"
|
10
14
|
end
|
11
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colincasey-sequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Evans
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-12 00:00:00 -07:00
|
13
13
|
default_executable: sequel
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -23,183 +23,185 @@ extra_rdoc_files:
|
|
23
23
|
- README.rdoc
|
24
24
|
- CHANGELOG
|
25
25
|
- COPYING
|
26
|
-
- doc/cheat_sheet.rdoc
|
27
26
|
- doc/advanced_associations.rdoc
|
28
|
-
- doc/
|
29
|
-
- doc/prepared_statements.rdoc
|
27
|
+
- doc/cheat_sheet.rdoc
|
30
28
|
- doc/dataset_filtering.rdoc
|
29
|
+
- doc/prepared_statements.rdoc
|
31
30
|
- doc/schema.rdoc
|
32
|
-
- doc/
|
33
|
-
- doc/release_notes/2.0.0.txt
|
34
|
-
- doc/release_notes/2.1.0.txt
|
35
|
-
- doc/release_notes/2.9.0.txt
|
36
|
-
- doc/release_notes/2.4.0.txt
|
37
|
-
- doc/release_notes/1.1.txt
|
38
|
-
- doc/release_notes/2.3.0.txt
|
31
|
+
- doc/sharding.rdoc
|
39
32
|
- doc/release_notes/1.0.txt
|
40
|
-
- doc/release_notes/
|
33
|
+
- doc/release_notes/1.1.txt
|
34
|
+
- doc/release_notes/1.3.txt
|
41
35
|
- doc/release_notes/1.4.0.txt
|
42
|
-
- doc/release_notes/2.5.0.txt
|
43
36
|
- doc/release_notes/1.5.0.txt
|
37
|
+
- doc/release_notes/2.0.0.txt
|
38
|
+
- doc/release_notes/2.1.0.txt
|
44
39
|
- doc/release_notes/2.10.0.txt
|
45
|
-
- doc/release_notes/
|
46
|
-
- doc/release_notes/2.
|
40
|
+
- doc/release_notes/2.2.0.txt
|
41
|
+
- doc/release_notes/2.3.0.txt
|
42
|
+
- doc/release_notes/2.4.0.txt
|
43
|
+
- doc/release_notes/2.5.0.txt
|
47
44
|
- doc/release_notes/2.6.0.txt
|
45
|
+
- doc/release_notes/2.7.0.txt
|
46
|
+
- doc/release_notes/2.8.0.txt
|
47
|
+
- doc/release_notes/2.9.0.txt
|
48
48
|
files:
|
49
49
|
- COPYING
|
50
50
|
- CHANGELOG
|
51
51
|
- README.rdoc
|
52
52
|
- Rakefile
|
53
53
|
- bin/sequel
|
54
|
+
- doc/advanced_associations.rdoc
|
55
|
+
- doc/cheat_sheet.rdoc
|
56
|
+
- doc/dataset_filtering.rdoc
|
57
|
+
- doc/prepared_statements.rdoc
|
54
58
|
- doc/release_notes
|
55
|
-
- doc/release_notes/2.8.0.txt
|
56
|
-
- doc/release_notes/2.0.0.txt
|
57
|
-
- doc/release_notes/2.1.0.txt
|
58
|
-
- doc/release_notes/2.9.0.txt
|
59
|
-
- doc/release_notes/2.4.0.txt
|
60
|
-
- doc/release_notes/1.1.txt
|
61
|
-
- doc/release_notes/2.3.0.txt
|
62
59
|
- doc/release_notes/1.0.txt
|
63
|
-
- doc/release_notes/
|
60
|
+
- doc/release_notes/1.1.txt
|
61
|
+
- doc/release_notes/1.3.txt
|
64
62
|
- doc/release_notes/1.4.0.txt
|
65
|
-
- doc/release_notes/2.5.0.txt
|
66
63
|
- doc/release_notes/1.5.0.txt
|
64
|
+
- doc/release_notes/2.0.0.txt
|
65
|
+
- doc/release_notes/2.1.0.txt
|
67
66
|
- doc/release_notes/2.10.0.txt
|
68
|
-
- doc/release_notes/
|
69
|
-
- doc/release_notes/2.
|
67
|
+
- doc/release_notes/2.2.0.txt
|
68
|
+
- doc/release_notes/2.3.0.txt
|
69
|
+
- doc/release_notes/2.4.0.txt
|
70
|
+
- doc/release_notes/2.5.0.txt
|
70
71
|
- doc/release_notes/2.6.0.txt
|
71
|
-
- doc/
|
72
|
-
- doc/
|
73
|
-
- doc/
|
74
|
-
- doc/prepared_statements.rdoc
|
75
|
-
- doc/dataset_filtering.rdoc
|
72
|
+
- doc/release_notes/2.7.0.txt
|
73
|
+
- doc/release_notes/2.8.0.txt
|
74
|
+
- doc/release_notes/2.9.0.txt
|
76
75
|
- doc/schema.rdoc
|
77
|
-
-
|
76
|
+
- doc/sharding.rdoc
|
77
|
+
- spec/adapters
|
78
|
+
- spec/adapters/ado_spec.rb
|
79
|
+
- spec/adapters/firebird_spec.rb
|
80
|
+
- spec/adapters/informix_spec.rb
|
81
|
+
- spec/adapters/mysql_spec.rb
|
82
|
+
- spec/adapters/oracle_spec.rb
|
83
|
+
- spec/adapters/postgres_spec.rb
|
84
|
+
- spec/adapters/spec_helper.rb
|
85
|
+
- spec/adapters/sqlite_spec.rb
|
78
86
|
- spec/integration
|
87
|
+
- spec/integration/dataset_test.rb
|
79
88
|
- spec/integration/eager_loader_test.rb
|
80
89
|
- spec/integration/prepared_statement_test.rb
|
81
90
|
- spec/integration/schema_test.rb
|
82
|
-
- spec/integration/dataset_test.rb
|
83
91
|
- spec/integration/spec_helper.rb
|
84
92
|
- spec/integration/type_test.rb
|
85
|
-
- spec/
|
86
|
-
- spec/
|
87
|
-
- spec/
|
88
|
-
- spec/
|
89
|
-
- spec/
|
90
|
-
- spec/
|
91
|
-
- spec/
|
92
|
-
- spec/
|
93
|
-
- spec/
|
94
|
-
- spec/
|
93
|
+
- spec/rcov.opts
|
94
|
+
- spec/sequel_core
|
95
|
+
- spec/sequel_core/connection_pool_spec.rb
|
96
|
+
- spec/sequel_core/core_ext_spec.rb
|
97
|
+
- spec/sequel_core/core_sql_spec.rb
|
98
|
+
- spec/sequel_core/database_spec.rb
|
99
|
+
- spec/sequel_core/dataset_spec.rb
|
100
|
+
- spec/sequel_core/expression_filters_spec.rb
|
101
|
+
- spec/sequel_core/migration_spec.rb
|
102
|
+
- spec/sequel_core/object_graph_spec.rb
|
103
|
+
- spec/sequel_core/pretty_table_spec.rb
|
104
|
+
- spec/sequel_core/schema_generator_spec.rb
|
105
|
+
- spec/sequel_core/schema_spec.rb
|
106
|
+
- spec/sequel_core/spec_helper.rb
|
107
|
+
- spec/sequel_core/version_spec.rb
|
95
108
|
- spec/sequel_model
|
96
|
-
- spec/sequel_model/hooks_spec.rb
|
97
|
-
- spec/sequel_model/eager_loading_spec.rb
|
98
109
|
- spec/sequel_model/associations_spec.rb
|
99
110
|
- spec/sequel_model/association_reflection_spec.rb
|
100
|
-
- spec/sequel_model/
|
111
|
+
- spec/sequel_model/base_spec.rb
|
101
112
|
- spec/sequel_model/caching_spec.rb
|
113
|
+
- spec/sequel_model/dataset_methods_spec.rb
|
114
|
+
- spec/sequel_model/eager_loading_spec.rb
|
115
|
+
- spec/sequel_model/hooks_spec.rb
|
116
|
+
- spec/sequel_model/inflector_spec.rb
|
102
117
|
- spec/sequel_model/model_spec.rb
|
103
|
-
- spec/sequel_model/
|
104
|
-
- spec/sequel_model/base_spec.rb
|
118
|
+
- spec/sequel_model/plugins_spec.rb
|
105
119
|
- spec/sequel_model/record_spec.rb
|
106
|
-
- spec/sequel_model/spec_helper.rb
|
107
120
|
- spec/sequel_model/schema_spec.rb
|
108
|
-
- spec/sequel_model/
|
109
|
-
- spec/sequel_model/
|
110
|
-
- spec/
|
111
|
-
- spec/
|
112
|
-
-
|
113
|
-
- spec/sequel_core/pretty_table_spec.rb
|
114
|
-
- spec/sequel_core/object_graph_spec.rb
|
115
|
-
- spec/sequel_core/migration_spec.rb
|
116
|
-
- spec/sequel_core/expression_filters_spec.rb
|
117
|
-
- spec/sequel_core/database_spec.rb
|
118
|
-
- spec/sequel_core/core_sql_spec.rb
|
119
|
-
- spec/sequel_core/connection_pool_spec.rb
|
120
|
-
- spec/sequel_core/schema_generator_spec.rb
|
121
|
-
- spec/sequel_core/spec_helper.rb
|
122
|
-
- spec/sequel_core/schema_spec.rb
|
123
|
-
- spec/sequel_core/core_ext_spec.rb
|
124
|
-
- spec/rcov.opts
|
125
|
-
- lib/sequel_model.rb
|
126
|
-
- lib/sequel_core.rb
|
127
|
-
- lib/sequel_model
|
128
|
-
- lib/sequel_model/dataset_methods.rb
|
129
|
-
- lib/sequel_model/hooks.rb
|
130
|
-
- lib/sequel_model/schema.rb
|
131
|
-
- lib/sequel_model/associations.rb
|
132
|
-
- lib/sequel_model/plugins.rb
|
133
|
-
- lib/sequel_model/eager_loading.rb
|
134
|
-
- lib/sequel_model/association_reflection.rb
|
135
|
-
- lib/sequel_model/record.rb
|
136
|
-
- lib/sequel_model/exceptions.rb
|
137
|
-
- lib/sequel_model/caching.rb
|
138
|
-
- lib/sequel_model/base.rb
|
139
|
-
- lib/sequel_model/inflector.rb
|
140
|
-
- lib/sequel_model/validations.rb
|
121
|
+
- spec/sequel_model/spec_helper.rb
|
122
|
+
- spec/sequel_model/validations_spec.rb
|
123
|
+
- spec/spec.opts
|
124
|
+
- spec/spec_config.rb.example
|
125
|
+
- lib/sequel.rb
|
141
126
|
- lib/sequel_core
|
142
|
-
- lib/sequel_core/migration.rb
|
143
|
-
- lib/sequel_core/sql.rb
|
144
|
-
- lib/sequel_core/version.rb
|
145
|
-
- lib/sequel_core/schema.rb
|
146
|
-
- lib/sequel_core/dataset
|
147
|
-
- lib/sequel_core/dataset/unsupported.rb
|
148
|
-
- lib/sequel_core/dataset/stored_procedures.rb
|
149
|
-
- lib/sequel_core/dataset/query.rb
|
150
|
-
- lib/sequel_core/dataset/sql.rb
|
151
|
-
- lib/sequel_core/dataset/schema.rb
|
152
|
-
- lib/sequel_core/dataset/callback.rb
|
153
|
-
- lib/sequel_core/dataset/pagination.rb
|
154
|
-
- lib/sequel_core/dataset/convenience.rb
|
155
|
-
- lib/sequel_core/dataset/prepared_statements.rb
|
156
127
|
- lib/sequel_core/adapters
|
157
|
-
- lib/sequel_core/adapters/
|
158
|
-
- lib/sequel_core/adapters/firebird.rb
|
159
|
-
- lib/sequel_core/adapters/oracle.rb
|
160
|
-
- lib/sequel_core/adapters/sqlite.rb
|
161
|
-
- lib/sequel_core/adapters/postgres.rb
|
128
|
+
- lib/sequel_core/adapters/ado.rb
|
162
129
|
- lib/sequel_core/adapters/db2.rb
|
130
|
+
- lib/sequel_core/adapters/dbi.rb
|
163
131
|
- lib/sequel_core/adapters/do
|
164
|
-
- lib/sequel_core/adapters/do/sqlite.rb
|
165
|
-
- lib/sequel_core/adapters/do/postgres.rb
|
166
132
|
- lib/sequel_core/adapters/do/mysql.rb
|
133
|
+
- lib/sequel_core/adapters/do/postgres.rb
|
134
|
+
- lib/sequel_core/adapters/do/sqlite.rb
|
135
|
+
- lib/sequel_core/adapters/do.rb
|
136
|
+
- lib/sequel_core/adapters/firebird.rb
|
167
137
|
- lib/sequel_core/adapters/informix.rb
|
168
|
-
- lib/sequel_core/adapters/dbi.rb
|
169
138
|
- lib/sequel_core/adapters/jdbc
|
170
|
-
- lib/sequel_core/adapters/jdbc/oracle.rb
|
171
|
-
- lib/sequel_core/adapters/jdbc/sqlite.rb
|
172
139
|
- lib/sequel_core/adapters/jdbc/h2.rb
|
173
140
|
- lib/sequel_core/adapters/jdbc/mysql.rb
|
141
|
+
- lib/sequel_core/adapters/jdbc/oracle.rb
|
174
142
|
- lib/sequel_core/adapters/jdbc/postgresql.rb
|
175
|
-
- lib/sequel_core/adapters/
|
143
|
+
- lib/sequel_core/adapters/jdbc/sqlite.rb
|
144
|
+
- lib/sequel_core/adapters/jdbc.rb
|
145
|
+
- lib/sequel_core/adapters/mysql.rb
|
146
|
+
- lib/sequel_core/adapters/odbc.rb
|
147
|
+
- lib/sequel_core/adapters/openbase.rb
|
148
|
+
- lib/sequel_core/adapters/oracle.rb
|
149
|
+
- lib/sequel_core/adapters/postgres.rb
|
176
150
|
- lib/sequel_core/adapters/shared
|
151
|
+
- lib/sequel_core/adapters/shared/mssql.rb
|
152
|
+
- lib/sequel_core/adapters/shared/ms_access.rb
|
153
|
+
- lib/sequel_core/adapters/shared/mysql.rb
|
177
154
|
- lib/sequel_core/adapters/shared/oracle.rb
|
178
|
-
- lib/sequel_core/adapters/shared/sqlite.rb
|
179
155
|
- lib/sequel_core/adapters/shared/postgres.rb
|
180
|
-
- lib/sequel_core/adapters/shared/mssql.rb
|
181
156
|
- lib/sequel_core/adapters/shared/progress.rb
|
182
|
-
- lib/sequel_core/adapters/shared/
|
183
|
-
- lib/sequel_core/adapters/
|
184
|
-
- lib/sequel_core/adapters/
|
185
|
-
- lib/sequel_core/adapters/
|
186
|
-
- lib/sequel_core/adapters/
|
187
|
-
- lib/sequel_core/adapters/
|
188
|
-
- lib/sequel_core/exceptions.rb
|
157
|
+
- lib/sequel_core/adapters/shared/sqlite.rb
|
158
|
+
- lib/sequel_core/adapters/sqlite.rb
|
159
|
+
- lib/sequel_core/adapters/utils
|
160
|
+
- lib/sequel_core/adapters/utils/date_format.rb
|
161
|
+
- lib/sequel_core/adapters/utils/stored_procedures.rb
|
162
|
+
- lib/sequel_core/adapters/utils/unsupported.rb
|
189
163
|
- lib/sequel_core/connection_pool.rb
|
164
|
+
- lib/sequel_core/core_ext.rb
|
190
165
|
- lib/sequel_core/core_sql.rb
|
191
|
-
- lib/sequel_core/schema
|
192
|
-
- lib/sequel_core/schema/sql.rb
|
193
|
-
- lib/sequel_core/schema/generator.rb
|
194
|
-
- lib/sequel_core/dataset.rb
|
195
|
-
- lib/sequel_core/object_graph.rb
|
196
166
|
- lib/sequel_core/database
|
197
167
|
- lib/sequel_core/database/schema.rb
|
168
|
+
- lib/sequel_core/database.rb
|
169
|
+
- lib/sequel_core/dataset
|
170
|
+
- lib/sequel_core/dataset/callback.rb
|
171
|
+
- lib/sequel_core/dataset/convenience.rb
|
172
|
+
- lib/sequel_core/dataset/pagination.rb
|
173
|
+
- lib/sequel_core/dataset/prepared_statements.rb
|
174
|
+
- lib/sequel_core/dataset/query.rb
|
175
|
+
- lib/sequel_core/dataset/schema.rb
|
176
|
+
- lib/sequel_core/dataset/sql.rb
|
177
|
+
- lib/sequel_core/dataset.rb
|
198
178
|
- lib/sequel_core/deprecated.rb
|
199
|
-
- lib/sequel_core/
|
179
|
+
- lib/sequel_core/exceptions.rb
|
180
|
+
- lib/sequel_core/migration.rb
|
181
|
+
- lib/sequel_core/object_graph.rb
|
200
182
|
- lib/sequel_core/pretty_table.rb
|
201
|
-
- lib/sequel_core/
|
202
|
-
- lib/
|
183
|
+
- lib/sequel_core/schema
|
184
|
+
- lib/sequel_core/schema/generator.rb
|
185
|
+
- lib/sequel_core/schema/sql.rb
|
186
|
+
- lib/sequel_core/schema.rb
|
187
|
+
- lib/sequel_core/sql.rb
|
188
|
+
- lib/sequel_core/version.rb
|
189
|
+
- lib/sequel_core.rb
|
190
|
+
- lib/sequel_model
|
191
|
+
- lib/sequel_model/associations.rb
|
192
|
+
- lib/sequel_model/association_reflection.rb
|
193
|
+
- lib/sequel_model/base.rb
|
194
|
+
- lib/sequel_model/caching.rb
|
195
|
+
- lib/sequel_model/dataset_methods.rb
|
196
|
+
- lib/sequel_model/eager_loading.rb
|
197
|
+
- lib/sequel_model/exceptions.rb
|
198
|
+
- lib/sequel_model/hooks.rb
|
199
|
+
- lib/sequel_model/inflector.rb
|
200
|
+
- lib/sequel_model/plugins.rb
|
201
|
+
- lib/sequel_model/record.rb
|
202
|
+
- lib/sequel_model/schema.rb
|
203
|
+
- lib/sequel_model/validations.rb
|
204
|
+
- lib/sequel_model.rb
|
203
205
|
has_rdoc: true
|
204
206
|
homepage: http://sequel.rubyforge.org
|
205
207
|
post_install_message:
|