rom-sql 3.3.3 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/rom/sql/function.rb +2 -2
- data/lib/rom/sql/relation/reading.rb +12 -0
- data/lib/rom/sql/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77e9a1c6c69b4539e55608281a06efbb7cac1b8c5723ab96be497aa982ed6677
|
4
|
+
data.tar.gz: 3d1690050c29b5a09f3e72fc952eb32b1e7e5b3e421d0bd157cdeec11bb98c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f1c1f6c059d88c2b5ad4872aea4f071799fdabab42d45a1a8fea4393361925883d4286a6543e58fa5ada1d22cee9fab691086e3f1a82a0f1ceecfac11ef918d
|
7
|
+
data.tar.gz: 42dcefd8414fc1b5a2afe818efff6ed3a410d0aea790ff9400b6f42127990781174ee83944d5791114d3b6fd49208c9a839e76d7afb3007cc19e5b3be2705172
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
+
## 3.4.0 2021-03-19
|
4
|
+
|
5
|
+
|
6
|
+
### Added
|
7
|
+
|
8
|
+
- `Relation#unordered` (@radar)
|
9
|
+
|
10
|
+
|
11
|
+
[Compare v3.3.3...v3.4.0](https://github.com/rom-rb/rom-sql/compare/v3.3.3...v3.4.0)
|
12
|
+
|
3
13
|
## 3.3.3 2021-03-05
|
4
14
|
|
5
15
|
|
data/lib/rom/sql/function.rb
CHANGED
@@ -192,8 +192,8 @@ module ROM
|
|
192
192
|
# Filter aggregate using the specified conditions
|
193
193
|
#
|
194
194
|
# @example
|
195
|
-
# users.project { integer::count(:id).filter(name.is("Jack")).as(:jacks) }.
|
196
|
-
# users.project { integer::count(:id).filter { name.is("John") }).as(:johns) }.
|
195
|
+
# users.project { integer::count(:id).filter(name.is("Jack")).as(:jacks) }.unordered
|
196
|
+
# users.project { integer::count(:id).filter { name.is("John") }).as(:johns) }.ordered
|
197
197
|
#
|
198
198
|
# @param condition [Hash,SQL::Attribute] Conditions
|
199
199
|
# @yield [block] A block with restrictions
|
@@ -481,6 +481,18 @@ module ROM
|
|
481
481
|
end
|
482
482
|
end
|
483
483
|
|
484
|
+
# Removes ordering for the relation
|
485
|
+
#
|
486
|
+
# @example
|
487
|
+
# users.unordered
|
488
|
+
#
|
489
|
+
# @return [Relation]
|
490
|
+
#
|
491
|
+
# @api public
|
492
|
+
def unordered
|
493
|
+
new(dataset.unordered)
|
494
|
+
end
|
495
|
+
|
484
496
|
# Reverse the order of the relation
|
485
497
|
#
|
486
498
|
# @example
|
data/lib/rom/sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
- !ruby/object:Gem::Version
|
242
242
|
version: '0'
|
243
243
|
requirements: []
|
244
|
-
rubygems_version: 3.
|
244
|
+
rubygems_version: 3.1.4
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: SQL databases support for ROM
|