ree_lib 1.0.67 → 1.0.68

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Ree.enable_irb_mode
2
2
 
3
- module ReeDaoLoadAggTest
3
+ module ReeDaoAggTest
4
4
  include Ree::PackageDSL
5
5
 
6
6
  package do
@@ -11,7 +11,7 @@ module ReeDaoLoadAggTest
11
11
  end
12
12
  end
13
13
 
14
- class ReeDaoLoadAggTest::Db
14
+ class ReeDaoAggTest::Db
15
15
  include Ree::BeanDSL
16
16
 
17
17
  DB_CONFIG = {
@@ -35,7 +35,7 @@ class ReeDaoLoadAggTest::Db
35
35
  end
36
36
  end
37
37
 
38
- class ReeDaoLoadAggTest::Book
38
+ class ReeDaoAggTest::Book
39
39
  include ReeDto::EntityDSL
40
40
 
41
41
  properties(
@@ -75,10 +75,10 @@ class ReeDaoLoadAggTest::Book
75
75
  attr_accessor :title, :user_id
76
76
  end
77
77
 
78
- class ReeDaoLoadAggTest::BookDto < SimpleDelegator
78
+ class ReeDaoAggTest::BookDto < SimpleDelegator
79
79
  end
80
80
 
81
- class ReeDaoLoadAggTest::User
81
+ class ReeDaoAggTest::User
82
82
  include ReeDto::EntityDSL
83
83
 
84
84
  properties(
@@ -116,7 +116,7 @@ class ReeDaoLoadAggTest::User
116
116
  @active_books
117
117
  end
118
118
 
119
- contract(ArrayOf[ReeDaoLoadAggTest::Book] => nil)
119
+ contract(ArrayOf[ReeDaoAggTest::Book] => nil)
120
120
  def set_books(books)
121
121
  @books = books; nil
122
122
  end
@@ -145,7 +145,7 @@ class ReeDaoLoadAggTest::User
145
145
  attr_accessor :name, :age, :organization_id
146
146
  end
147
147
 
148
- class ReeDaoLoadAggTest::UserDto
148
+ class ReeDaoAggTest::UserDto
149
149
  include ReeDto::EntityDSL
150
150
 
151
151
  properties(
@@ -172,7 +172,7 @@ class ReeDaoLoadAggTest::UserDto
172
172
  end
173
173
  end
174
174
 
175
- class ReeDaoLoadAggTest::Organization
175
+ class ReeDaoAggTest::Organization
176
176
  include ReeDto::EntityDSL
177
177
 
178
178
  properties(
@@ -180,7 +180,7 @@ class ReeDaoLoadAggTest::Organization
180
180
  name: String
181
181
  )
182
182
 
183
- contract(Array[ReeDaoLoadAggTest::User] => nil)
183
+ contract(Array[ReeDaoAggTest::User] => nil)
184
184
  def set_users(users)
185
185
  @users = users; nil
186
186
  end
@@ -193,7 +193,7 @@ class ReeDaoLoadAggTest::Organization
193
193
  end
194
194
 
195
195
 
196
- class ReeDaoLoadAggTest::UserPassport
196
+ class ReeDaoAggTest::UserPassport
197
197
  include ReeDto::EntityDSL
198
198
 
199
199
  properties(
@@ -205,7 +205,7 @@ class ReeDaoLoadAggTest::UserPassport
205
205
  attr_accessor :info, :user_id
206
206
  end
207
207
 
208
- class ReeDaoLoadAggTest::Movie
208
+ class ReeDaoAggTest::Movie
209
209
  include ReeDto::EntityDSL
210
210
 
211
211
  properties(
@@ -215,7 +215,7 @@ class ReeDaoLoadAggTest::Movie
215
215
  )
216
216
  end
217
217
 
218
- class ReeDaoLoadAggTest::Videogame
218
+ class ReeDaoAggTest::Videogame
219
219
  include ReeDto::EntityDSL
220
220
 
221
221
  properties(
@@ -225,7 +225,7 @@ class ReeDaoLoadAggTest::Videogame
225
225
  )
226
226
  end
227
227
 
228
- class ReeDaoLoadAggTest::Hobby
228
+ class ReeDaoAggTest::Hobby
229
229
  include ReeDto::EntityDSL
230
230
 
231
231
  properties(
@@ -235,7 +235,7 @@ class ReeDaoLoadAggTest::Hobby
235
235
  )
236
236
  end
237
237
 
238
- class ReeDaoLoadAggTest::Vinyl
238
+ class ReeDaoAggTest::Vinyl
239
239
  include ReeDto::EntityDSL
240
240
 
241
241
  properties(
@@ -245,7 +245,7 @@ class ReeDaoLoadAggTest::Vinyl
245
245
  )
246
246
  end
247
247
 
248
- class ReeDaoLoadAggTest::Pet
248
+ class ReeDaoAggTest::Pet
249
249
  include ReeDto::EntityDSL
250
250
 
251
251
  properties(
@@ -255,7 +255,7 @@ class ReeDaoLoadAggTest::Pet
255
255
  )
256
256
  end
257
257
 
258
- class ReeDaoLoadAggTest::Skill
258
+ class ReeDaoAggTest::Skill
259
259
  include ReeDto::EntityDSL
260
260
 
261
261
  properties(
@@ -265,7 +265,7 @@ class ReeDaoLoadAggTest::Skill
265
265
  )
266
266
  end
267
267
 
268
- class ReeDaoLoadAggTest::Dream
268
+ class ReeDaoAggTest::Dream
269
269
  include ReeDto::EntityDSL
270
270
 
271
271
  properties(
@@ -275,7 +275,7 @@ class ReeDaoLoadAggTest::Dream
275
275
  )
276
276
  end
277
277
 
278
- class ReeDaoLoadAggTest::Chapter
278
+ class ReeDaoAggTest::Chapter
279
279
  include ReeDto::EntityDSL
280
280
 
281
281
  properties(
@@ -287,10 +287,10 @@ class ReeDaoLoadAggTest::Chapter
287
287
  attr_accessor :title, :book_id
288
288
  end
289
289
 
290
- class ReeDaoLoadAggTest::ChapterDto < SimpleDelegator
290
+ class ReeDaoAggTest::ChapterDto < SimpleDelegator
291
291
  end
292
292
 
293
- class ReeDaoLoadAggTest::Author
293
+ class ReeDaoAggTest::Author
294
294
  include ReeDto::EntityDSL
295
295
 
296
296
  properties(
@@ -302,10 +302,10 @@ class ReeDaoLoadAggTest::Author
302
302
  attr_accessor :name, :book_id
303
303
  end
304
304
 
305
- class ReeDaoLoadAggTest::AuthorDto < SimpleDelegator
305
+ class ReeDaoAggTest::AuthorDto < SimpleDelegator
306
306
  end
307
307
 
308
- class ReeDaoLoadAggTest::Review
308
+ class ReeDaoAggTest::Review
309
309
  include ReeDto::EntityDSL
310
310
 
311
311
  properties(
@@ -325,7 +325,7 @@ class ReeDaoLoadAggTest::Review
325
325
  attr_accessor :rating, :book_id
326
326
  end
327
327
 
328
- class ReeDaoLoadAggTest::ReviewAuthor
328
+ class ReeDaoAggTest::ReviewAuthor
329
329
  include ReeDto::EntityDSL
330
330
 
331
331
  properties(
@@ -335,7 +335,7 @@ class ReeDaoLoadAggTest::ReviewAuthor
335
335
  )
336
336
  end
337
337
 
338
- class ReeDaoLoadAggTest::Users
338
+ class ReeDaoAggTest::Users
339
339
  include ReeDao::DSL
340
340
 
341
341
  dao :users do
@@ -344,7 +344,7 @@ class ReeDaoLoadAggTest::Users
344
344
 
345
345
  table :users
346
346
 
347
- schema ReeDaoLoadAggTest::User do
347
+ schema ReeDaoAggTest::User do
348
348
  integer :id, null: true
349
349
  integer :organization_id
350
350
  string :name
@@ -354,7 +354,7 @@ class ReeDaoLoadAggTest::Users
354
354
  filter :by_name, -> (name) { where(name: name) }
355
355
  end
356
356
 
357
- class ReeDaoLoadAggTest::Organizations
357
+ class ReeDaoAggTest::Organizations
358
358
  include ReeDao::DSL
359
359
 
360
360
  dao :organizations do
@@ -363,7 +363,7 @@ class ReeDaoLoadAggTest::Organizations
363
363
 
364
364
  table :organizations
365
365
 
366
- schema ReeDaoLoadAggTest::Organization do
366
+ schema ReeDaoAggTest::Organization do
367
367
  integer :id, null: true
368
368
  string :name
369
369
  end
@@ -371,7 +371,7 @@ class ReeDaoLoadAggTest::Organizations
371
371
  filter :by_name, -> (name) { where(name: name) }
372
372
  end
373
373
 
374
- class ReeDaoLoadAggTest::UserPassports
374
+ class ReeDaoAggTest::UserPassports
375
375
  include ReeDao::DSL
376
376
 
377
377
  dao :user_passports do
@@ -380,14 +380,14 @@ class ReeDaoLoadAggTest::UserPassports
380
380
 
381
381
  table :user_passports
382
382
 
383
- schema ReeDaoLoadAggTest::UserPassport do
383
+ schema ReeDaoAggTest::UserPassport do
384
384
  integer :id, null: true
385
385
  integer :user_id
386
386
  string :info
387
387
  end
388
388
  end
389
389
 
390
- class ReeDaoLoadAggTest::Movies
390
+ class ReeDaoAggTest::Movies
391
391
  include ReeDao::DSL
392
392
 
393
393
  dao :movies do
@@ -396,14 +396,14 @@ class ReeDaoLoadAggTest::Movies
396
396
 
397
397
  table :movies
398
398
 
399
- schema ReeDaoLoadAggTest::Movie do
399
+ schema ReeDaoAggTest::Movie do
400
400
  integer :id, null: true
401
401
  integer :user_id
402
402
  string :title
403
403
  end
404
404
  end
405
405
 
406
- class ReeDaoLoadAggTest::Videogames
406
+ class ReeDaoAggTest::Videogames
407
407
  include ReeDao::DSL
408
408
 
409
409
  dao :videogames do
@@ -412,14 +412,14 @@ class ReeDaoLoadAggTest::Videogames
412
412
 
413
413
  table :videogames
414
414
 
415
- schema ReeDaoLoadAggTest::Videogame do
415
+ schema ReeDaoAggTest::Videogame do
416
416
  integer :id, null: true
417
417
  integer :user_id
418
418
  string :title
419
419
  end
420
420
  end
421
421
 
422
- class ReeDaoLoadAggTest::Hobbies
422
+ class ReeDaoAggTest::Hobbies
423
423
  include ReeDao::DSL
424
424
 
425
425
  dao :hobbies do
@@ -428,14 +428,14 @@ class ReeDaoLoadAggTest::Hobbies
428
428
 
429
429
  table :hobbies
430
430
 
431
- schema ReeDaoLoadAggTest::Hobby do
431
+ schema ReeDaoAggTest::Hobby do
432
432
  integer :id, null: true
433
433
  integer :user_id
434
434
  string :title
435
435
  end
436
436
  end
437
437
 
438
- class ReeDaoLoadAggTest::Vinyls
438
+ class ReeDaoAggTest::Vinyls
439
439
  include ReeDao::DSL
440
440
 
441
441
  dao :vinyls do
@@ -444,14 +444,14 @@ class ReeDaoLoadAggTest::Vinyls
444
444
 
445
445
  table :vinyls
446
446
 
447
- schema ReeDaoLoadAggTest::Vinyl do
447
+ schema ReeDaoAggTest::Vinyl do
448
448
  integer :id, null: true
449
449
  integer :user_id
450
450
  string :title
451
451
  end
452
452
  end
453
453
 
454
- class ReeDaoLoadAggTest::Pets
454
+ class ReeDaoAggTest::Pets
455
455
  include ReeDao::DSL
456
456
 
457
457
  dao :pets do
@@ -460,14 +460,14 @@ class ReeDaoLoadAggTest::Pets
460
460
 
461
461
  table :pets
462
462
 
463
- schema ReeDaoLoadAggTest::Pet do
463
+ schema ReeDaoAggTest::Pet do
464
464
  integer :id, null: true
465
465
  integer :user_id
466
466
  string :name
467
467
  end
468
468
  end
469
469
 
470
- class ReeDaoLoadAggTest::Skills
470
+ class ReeDaoAggTest::Skills
471
471
  include ReeDao::DSL
472
472
 
473
473
  dao :skills do
@@ -476,14 +476,14 @@ class ReeDaoLoadAggTest::Skills
476
476
 
477
477
  table :skills
478
478
 
479
- schema ReeDaoLoadAggTest::Skill do
479
+ schema ReeDaoAggTest::Skill do
480
480
  integer :id, null: true
481
481
  integer :user_id
482
482
  string :title
483
483
  end
484
484
  end
485
485
 
486
- class ReeDaoLoadAggTest::Dreams
486
+ class ReeDaoAggTest::Dreams
487
487
  include ReeDao::DSL
488
488
 
489
489
  dao :dreams do
@@ -492,14 +492,14 @@ class ReeDaoLoadAggTest::Dreams
492
492
 
493
493
  table :dreams
494
494
 
495
- schema ReeDaoLoadAggTest::Dream do
495
+ schema ReeDaoAggTest::Dream do
496
496
  integer :id, null: true
497
497
  integer :user_id
498
498
  string :description
499
499
  end
500
500
  end
501
501
 
502
- class ReeDaoLoadAggTest::Books
502
+ class ReeDaoAggTest::Books
503
503
  include ReeDao::DSL
504
504
 
505
505
  dao :books do
@@ -508,14 +508,14 @@ class ReeDaoLoadAggTest::Books
508
508
 
509
509
  table :books
510
510
 
511
- schema ReeDaoLoadAggTest::Book do
511
+ schema ReeDaoAggTest::Book do
512
512
  integer :id, null: true
513
513
  integer :user_id
514
514
  string :title
515
515
  end
516
516
  end
517
517
 
518
- class ReeDaoLoadAggTest::Chapters
518
+ class ReeDaoAggTest::Chapters
519
519
  include ReeDao::DSL
520
520
 
521
521
  dao :chapters do
@@ -524,14 +524,14 @@ class ReeDaoLoadAggTest::Chapters
524
524
 
525
525
  table :chapters
526
526
 
527
- schema ReeDaoLoadAggTest::Chapter do
527
+ schema ReeDaoAggTest::Chapter do
528
528
  integer :id, null: true
529
529
  integer :book_id
530
530
  string :title
531
531
  end
532
532
  end
533
533
 
534
- class ReeDaoLoadAggTest::Authors
534
+ class ReeDaoAggTest::Authors
535
535
  include ReeDao::DSL
536
536
 
537
537
  dao :authors do
@@ -540,14 +540,14 @@ class ReeDaoLoadAggTest::Authors
540
540
 
541
541
  table :authors
542
542
 
543
- schema ReeDaoLoadAggTest::Author do
543
+ schema ReeDaoAggTest::Author do
544
544
  integer :id, null: true
545
545
  integer :book_id
546
546
  string :name
547
547
  end
548
548
  end
549
549
 
550
- class ReeDaoLoadAggTest::Reviews
550
+ class ReeDaoAggTest::Reviews
551
551
  include ReeDao::DSL
552
552
 
553
553
  dao :reviews do
@@ -556,14 +556,14 @@ class ReeDaoLoadAggTest::Reviews
556
556
 
557
557
  table :reviews
558
558
 
559
- schema ReeDaoLoadAggTest::Review do
559
+ schema ReeDaoAggTest::Review do
560
560
  integer :id, null: true
561
561
  integer :book_id
562
562
  integer :rating
563
563
  end
564
564
  end
565
565
 
566
- class ReeDaoLoadAggTest::ReviewAuthors
566
+ class ReeDaoAggTest::ReviewAuthors
567
567
  include ReeDao::DSL
568
568
 
569
569
  dao :review_authors do
@@ -572,7 +572,7 @@ class ReeDaoLoadAggTest::ReviewAuthors
572
572
 
573
573
  table :review_authors
574
574
 
575
- schema ReeDaoLoadAggTest::ReviewAuthor do
575
+ schema ReeDaoAggTest::ReviewAuthor do
576
576
  integer :id, null: true
577
577
  integer :review_id
578
578
  string :name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReeLib
4
- VERSION = "1.0.67"
4
+ VERSION = "1.0.68"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ree_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.67
4
+ version: 1.0.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2023-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ree
@@ -308,6 +308,7 @@ files:
308
308
  - lib/ree_lib/packages/ree_dao/package/ree_dao.rb
309
309
  - lib/ree_lib/packages/ree_dao/package/ree_dao/aggregate_dsl.rb
310
310
  - lib/ree_lib/packages/ree_dao/package/ree_dao/association.rb
311
+ - lib/ree_lib/packages/ree_dao/package/ree_dao/association_methods.rb
311
312
  - lib/ree_lib/packages/ree_dao/package/ree_dao/associations.rb
312
313
  - lib/ree_lib/packages/ree_dao/package/ree_dao/beans/connections.rb
313
314
  - lib/ree_lib/packages/ree_dao/package/ree_dao/beans/dao_cache.rb
@@ -315,6 +316,7 @@ files:
315
316
  - lib/ree_lib/packages/ree_dao/package/ree_dao/contract/entity_contract.rb
316
317
  - lib/ree_lib/packages/ree_dao/package/ree_dao/dataset_extensions.rb
317
318
  - lib/ree_lib/packages/ree_dao/package/ree_dao/dsl.rb
319
+ - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/agg.rb
318
320
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_connection.rb
319
321
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_dao.rb
320
322
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_pg_connection.rb
@@ -322,7 +324,6 @@ files:
322
324
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/drop_cache.rb
323
325
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/extract_changes.rb
324
326
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/init_cache.rb
325
- - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/load_agg.rb
326
327
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/one_to_many.rb
327
328
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/one_to_one.rb
328
329
  - lib/ree_lib/packages/ree_dao/package/ree_dao/functions/persist_assoc.rb
@@ -331,6 +332,7 @@ files:
331
332
  - lib/ree_lib/packages/ree_dao/package/ree_dao/wrappers/pg_jsonb.rb
332
333
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/beans/connections.schema.json
333
334
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/beans/dao_cache.schema.json
335
+ - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/agg.schema.json
334
336
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/build_connection.schema.json
335
337
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/build_dao.schema.json
336
338
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/build_pg_connection.schema.json
@@ -338,7 +340,6 @@ files:
338
340
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/drop_cache.schema.json
339
341
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/extract_changes.schema.json
340
342
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/init_cache.schema.json
341
- - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/load_agg.schema.json
342
343
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/one_to_many.schema.json
343
344
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/one_to_one.schema.json
344
345
  - lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/persist_assoc.schema.json
@@ -346,9 +347,9 @@ files:
346
347
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/build_pg_connection_spec.rb
347
348
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/build_sqlite_connection/max_connections_spec.rb
348
349
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/build_sqlite_connection_spec.rb
349
- - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/load_agg/load_agg_benchmark_spec.rb
350
- - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/load_agg/load_agg_spec.rb
351
- - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/load_agg/ree_dao_load_agg_test.rb
350
+ - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/load_agg/agg_benchmark_spec.rb
351
+ - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/load_agg/agg_spec.rb
352
+ - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/load_agg/ree_dao_agg_test.rb
352
353
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/one_to_many_spec.rb
353
354
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/one_to_one_spec.rb
354
355
  - lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/persist_assoc_spec.rb