testgres.postgres-configuration 0.3.0__tar.gz → 0.4.0__tar.gz

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.
Files changed (45) hide show
  1. {testgres_postgres_configuration-0.3.0/testgres.postgres_configuration.egg-info → testgres_postgres_configuration-0.4.0}/PKG-INFO +1 -1
  2. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/pyproject.toml +1 -1
  3. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/controller_utils.py +13 -1
  4. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/data_verificator.py +1 -0
  5. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/helpers.py +1 -0
  6. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__unique_str_list.py +1 -0
  7. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__unique_str_list.py +1 -0
  8. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/write_utils.py +4 -0
  9. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/implementation/v00/configuration_base.py +28 -5
  10. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/implementation/v00/configuration_std.py +1 -1
  11. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0/testgres.postgres_configuration.egg-info}/PKG-INFO +1 -1
  12. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/LICENSE +0 -0
  13. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/README.md +0 -0
  14. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/setup.cfg +0 -0
  15. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/__init__.py +0 -0
  16. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/abstract/v00/configuration.py +0 -0
  17. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/bugcheck_error.py +0 -0
  18. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/handlers.py +0 -0
  19. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/model.py +0 -0
  20. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/add/option_handler_to_add__std.py +0 -0
  21. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/get_value/option_handler_to_get_value__std__simple.py +0 -0
  22. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/get_value/option_handler_to_get_value__std__union_list.py +0 -0
  23. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__bool.py +0 -0
  24. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__generic.py +0 -0
  25. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__int.py +0 -0
  26. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__str.py +0 -0
  27. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__bool.py +0 -0
  28. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__generic.py +0 -0
  29. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__int.py +0 -0
  30. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__str.py +0 -0
  31. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/prepare_set_value_item/option_handler_to_prepare_set_value_item__std__str.py +0 -0
  32. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/set_value/option_handler_to_set_value__std__simple.py +0 -0
  33. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/set_value_item/option_handler_to_set_value_item__std__unique.py +0 -0
  34. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/write/option_handler_to_write__std__bool.py +0 -0
  35. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/write/option_handler_to_write__std__generic.py +0 -0
  36. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/write/option_handler_to_write__std__int.py +0 -0
  37. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/write/option_handler_to_write__std__str.py +0 -0
  38. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/option/handlers/write/option_handler_to_write__std__unique_str_list.py +0 -0
  39. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/raise_error.py +0 -0
  40. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/core/read_utils.py +0 -0
  41. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/os/abstract/configuration_os_ops.py +0 -0
  42. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/src/os/local/configuration_os_ops.py +0 -0
  43. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/testgres.postgres_configuration.egg-info/SOURCES.txt +0 -0
  44. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/testgres.postgres_configuration.egg-info/dependency_links.txt +0 -0
  45. {testgres_postgres_configuration-0.3.0 → testgres_postgres_configuration-0.4.0}/testgres.postgres_configuration.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres.postgres_configuration
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: PostgreSQL Configuration Python Library
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -19,7 +19,7 @@ log_file_date_format = "%Y-%m-%d %H:%M:%S"
19
19
 
20
20
  [project]
21
21
  name = "testgres.postgres_configuration"
22
- version = "0.3.0"
22
+ version = "0.4.0"
23
23
 
24
24
  description = "PostgreSQL Configuration Python Library"
25
25
  readme = "README.md"
@@ -407,6 +407,8 @@ class DataControllerUtils:
407
407
  if fileData.m_Path == newFilePath:
408
408
  RaiseError.FileIsAlreadyRegistered(newFilePath)
409
409
 
410
+ continue
411
+
410
412
  return __class__.Helper__FinishCreateTopLevelFile(cfgData, newFilePath)
411
413
 
412
414
  # --------------------------------------------------------------------
@@ -436,6 +438,8 @@ class DataControllerUtils:
436
438
  if fileData.m_Path == newFilePath:
437
439
  return fileData
438
440
 
441
+ continue
442
+
439
443
  newFileData = PgCfgModel__FileData(cfgData, newFilePath)
440
444
 
441
445
  __class__.Helper__RegFileInCfgData(cfgData, newFileData) # raise
@@ -482,6 +486,8 @@ class DataControllerUtils:
482
486
  if ptr is fileLineData:
483
487
  return iFileLine
484
488
 
489
+ continue
490
+
485
491
  assert iFileLine == cFileLines
486
492
  return iFileLine
487
493
 
@@ -508,6 +514,8 @@ class DataControllerUtils:
508
514
  if ptr.m_Element is elementData:
509
515
  return iItem
510
516
 
517
+ continue
518
+
511
519
  assert iItem == cItems
512
520
  return iItem
513
521
 
@@ -631,6 +639,8 @@ class DataControllerUtils:
631
639
  if ptr is fileData:
632
640
  break
633
641
 
642
+ continue
643
+
634
644
  assert i >= 0
635
645
  assert i <= len(indexItemData)
636
646
 
@@ -645,7 +655,7 @@ class DataControllerUtils:
645
655
  if len(indexItemData) == 0: # it is an abnormal situation
646
656
  filesByStrKeyDictionary.pop(fileKey)
647
657
  elif len(indexItemData) == 1:
648
- filesByStrKeyDictionary[fileKey] == indexItemData[0]
658
+ filesByStrKeyDictionary[fileKey] = indexItemData[0]
649
659
 
650
660
  return
651
661
 
@@ -727,6 +737,8 @@ class DataControllerUtils:
727
737
  if ptr is optionData:
728
738
  break
729
739
 
740
+ continue
741
+
730
742
  assert i >= 0
731
743
  assert i <= len(data)
732
744
 
@@ -35,6 +35,7 @@ class DataVerificator:
35
35
  for ch in text:
36
36
  if ch in __class__.sm_InvalidCommentSymbols:
37
37
  return False
38
+ continue
38
39
 
39
40
  return True
40
41
 
@@ -59,6 +59,7 @@ class Helpers:
59
59
 
60
60
  if x == value:
61
61
  return True
62
+ continue
62
63
 
63
64
  return False
64
65
 
@@ -39,6 +39,7 @@ class OptionHandlerToPrepareGetValue__Std__UniqueStrList(
39
39
 
40
40
  result.append(v)
41
41
  index.add(v)
42
+ continue
42
43
 
43
44
  return result
44
45
 
@@ -52,6 +52,7 @@ class OptionHandlerToPrepareSetValue__Std__UniqueStrList(
52
52
 
53
53
  result.append(v)
54
54
  index.add(v)
55
+ continue
55
56
 
56
57
  return result
57
58
 
@@ -33,6 +33,7 @@ class WriteUtils:
33
33
  result += sep
34
34
  result += __class__.Helper__PackStrListItem2(str(x))
35
35
  sep = ","
36
+ continue
36
37
 
37
38
  return result
38
39
 
@@ -63,6 +64,7 @@ class WriteUtils:
63
64
  result += "\\\\"
64
65
  else:
65
66
  result += ch
67
+ continue
66
68
 
67
69
  result += "'"
68
70
 
@@ -87,6 +89,7 @@ class WriteUtils:
87
89
  result += '""'
88
90
  else:
89
91
  result += ch
92
+ continue
90
93
 
91
94
  if needQuote:
92
95
  result += '"'
@@ -111,6 +114,7 @@ class WriteUtils:
111
114
  return True
112
115
  if ch == ",":
113
116
  return True
117
+ continue
114
118
 
115
119
 
116
120
  # //////////////////////////////////////////////////////////////////////////////
@@ -2056,6 +2056,7 @@ class PostgresConfiguration_Base(PostgresConfiguration, PgCfgModel__DataHandler)
2056
2056
  PgCfgModel__DataControllerUtils.Option__delete(
2057
2057
  self.m_Data, optionData, True
2058
2058
  )
2059
+ continue
2059
2060
 
2060
2061
  # [2025-01-02] It is expected
2061
2062
  assert optionName not in allOptionsByName.keys()
@@ -2626,6 +2627,7 @@ class PostgresConfiguration_Base(PostgresConfiguration, PgCfgModel__DataHandler)
2626
2627
  return PostgresConfigurationSetOptionValueResult_Base.Create__OptValueItemWasAlreadyDefined(
2627
2628
  self, optionData
2628
2629
  )
2630
+ continue
2629
2631
 
2630
2632
  # [2025-01-07] Postgres does not able to join multiple list
2631
2633
  # TODO: We have to take into account overriding the values of postgresql.conf
@@ -2742,6 +2744,7 @@ class PostgresConfiguration_Base(PostgresConfiguration, PgCfgModel__DataHandler)
2742
2744
  optionData2.m_Name,
2743
2745
  optionPreparedValueItem,
2744
2746
  )
2747
+ continue
2745
2748
 
2746
2749
  # [2025-01-07] Postgres does not able to join multiple list
2747
2750
  # TODO: We have to take into account overriding the values of postgresql.conf
@@ -2870,6 +2873,7 @@ class PostgresConfiguration_Base(PostgresConfiguration, PgCfgModel__DataHandler)
2870
2873
  RaiseError.OptionIsAlreadyExistInAnotherFile(
2871
2874
  fileData2.m_Path, optionName
2872
2875
  )
2876
+ continue
2873
2877
 
2874
2878
  BugCheckError.UnexpectedSituation(
2875
2879
  C_BUGCHECK_SRC, "#001", "optionName=[{0}].".format(optionName)
@@ -3626,13 +3630,19 @@ class PostgresConfigurationReader_Base:
3626
3630
 
3627
3631
  if ch == "'":
3628
3632
  __class__.Helper__ProcessLineData__Option__Quoted(
3629
- fileLine, lineReader, optionOffset, optionName
3633
+ fileLine,
3634
+ lineReader,
3635
+ optionOffset,
3636
+ optionName,
3630
3637
  )
3631
3638
  else:
3632
3639
  lineReader.StepBack()
3633
3640
 
3634
3641
  __class__.Helper__ProcessLineData__Option__Generic(
3635
- fileLine, lineReader, optionOffset, optionName
3642
+ fileLine,
3643
+ lineReader,
3644
+ optionOffset,
3645
+ optionName,
3636
3646
  )
3637
3647
 
3638
3648
  # --------------------------------------------------------------------
@@ -3656,7 +3666,8 @@ class PostgresConfigurationReader_Base:
3656
3666
 
3657
3667
  if ch is None or ReadUtils.IsEOL(ch):
3658
3668
  RaiseError.CfgReader__EndQuotedOptionValueIsNotFound(
3659
- optionName, lineReader.GetLineNum()
3669
+ optionName,
3670
+ lineReader.GetLineNum(),
3660
3671
  )
3661
3672
  break
3662
3673
 
@@ -3681,7 +3692,8 @@ class PostgresConfigurationReader_Base:
3681
3692
 
3682
3693
  if ch is None or ReadUtils.IsEOL(ch):
3683
3694
  RaiseError.CfgReader__IncompletedEscapeInQuotedOptionValue(
3684
- optionName, lineReader.GetLineNum()
3695
+ optionName,
3696
+ lineReader.GetLineNum(),
3685
3697
  )
3686
3698
 
3687
3699
  if ch == "b":
@@ -3727,7 +3739,10 @@ class PostgresConfigurationReader_Base:
3727
3739
  optionValue += chr(octVal)
3728
3740
  else:
3729
3741
  RaiseError.CfgReader__UnknownEscapedSymbolInQuotedOptionValue(
3730
- optionName, lineReader.GetLineNum(), lineReader.GetColNum(), ch
3742
+ optionName,
3743
+ lineReader.GetLineNum(),
3744
+ lineReader.GetColNum(),
3745
+ ch,
3731
3746
  )
3732
3747
 
3733
3748
  continue
@@ -3920,6 +3935,8 @@ class PostgresConfigurationWriter_Base:
3920
3935
  ctx.UpdFiles.append(fileCtx)
3921
3936
  else:
3922
3937
  BugCheckError.UnkFileDataStatus(fileData.m_Path, fileData.m_Status)
3938
+ continue
3939
+ return
3923
3940
 
3924
3941
  # --------------------------------------------------------------------
3925
3942
  @staticmethod
@@ -3939,6 +3956,8 @@ class PostgresConfigurationWriter_Base:
3939
3956
  fileCtx.Content = __class__.Helper__MakeFileDataContent(
3940
3957
  ctx, fileCtx.FileData
3941
3958
  )
3959
+ continue
3960
+ return
3942
3961
 
3943
3962
  # --------------------------------------------------------------------
3944
3963
  @staticmethod
@@ -4078,6 +4097,8 @@ class PostgresConfigurationWriter_Base:
4078
4097
 
4079
4098
  fileCtx.FileData.m_LastModifiedTimestamp = lastMDate
4080
4099
  fileCtx.FileData.m_Status = PgCfgModel__FileStatus.EXISTS
4100
+ continue
4101
+ return
4081
4102
 
4082
4103
  # --------------------------------------------------------------------
4083
4104
  @staticmethod
@@ -4095,6 +4116,7 @@ class PostgresConfigurationWriter_Base:
4095
4116
  assert type(lineContent) is str
4096
4117
  fileContent += lineContent
4097
4118
  fileContent += "\n"
4119
+ continue
4098
4120
 
4099
4121
  return fileContent
4100
4122
 
@@ -4133,6 +4155,7 @@ class PostgresConfigurationWriter_Base:
4133
4155
  lineContent, lineItem.m_Element.m_Offset, itemContent
4134
4156
  )
4135
4157
  assert type(lineContent) is str
4158
+ continue
4136
4159
 
4137
4160
  assert type(lineContent) is str
4138
4161
  return lineContent
@@ -292,7 +292,7 @@ class PostgresConfiguration_Std(PostgresConfiguration_Base):
292
292
  sm_SingleInstance__OptionHandlerToPrepareSetValue__Std__UniqueStrList,
293
293
  sm_SingleInstance__OptionHandlerToPrepareGetValue__Std__UniqueStrList,
294
294
  sm_SingleInstance__OptionHandlerToPrepareSetValueItem__Std__Str,
295
- None,
295
+ sm_SingleInstance__OptionHandlerToSetValue__Std__Simple,
296
296
  sm_SingleInstance__OptionHandlerToGetValue__Std__UnionList,
297
297
  sm_SingleInstance__OptionHandlerToAddOption__Std,
298
298
  sm_SingleInstance__OptionHandlerToSetValueItem__Std__Unique,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres.postgres_configuration
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: PostgreSQL Configuration Python Library
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL