testgres.postgres-configuration 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl
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.
- testgres/postgres_configuration/core/controller_utils.py +13 -1
- testgres/postgres_configuration/core/data_verificator.py +1 -0
- testgres/postgres_configuration/core/helpers.py +1 -0
- testgres/postgres_configuration/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__unique_str_list.py +1 -0
- testgres/postgres_configuration/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__unique_str_list.py +1 -0
- testgres/postgres_configuration/core/write_utils.py +4 -0
- testgres/postgres_configuration/implementation/v00/configuration_base.py +28 -5
- testgres/postgres_configuration/implementation/v00/configuration_std.py +1 -1
- {testgres_postgres_configuration-0.3.0.dist-info → testgres_postgres_configuration-0.4.0.dist-info}/METADATA +1 -1
- {testgres_postgres_configuration-0.3.0.dist-info → testgres_postgres_configuration-0.4.0.dist-info}/RECORD +13 -13
- {testgres_postgres_configuration-0.3.0.dist-info → testgres_postgres_configuration-0.4.0.dist-info}/WHEEL +1 -1
- {testgres_postgres_configuration-0.3.0.dist-info → testgres_postgres_configuration-0.4.0.dist-info}/licenses/LICENSE +0 -0
- {testgres_postgres_configuration-0.3.0.dist-info → testgres_postgres_configuration-0.4.0.dist-info}/top_level.txt +0 -0
|
@@ -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]
|
|
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
|
|
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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,14 +1,14 @@
|
|
|
1
1
|
testgres/postgres_configuration/__init__.py,sha256=6BRlJwk2ONsbqht4YyKv__AidKmDdB0cQrW3ouCZ7vQ,769
|
|
2
2
|
testgres/postgres_configuration/abstract/v00/configuration.py,sha256=p8yp-I2chY_l-pbtUWLxx91s1uWfwnl15I6vEAwp0LM,15964
|
|
3
3
|
testgres/postgres_configuration/core/bugcheck_error.py,sha256=TmzP9Gx42TWuDrHtzh9tswaqoLmJxiN32jboJAEf3FA,8978
|
|
4
|
-
testgres/postgres_configuration/core/controller_utils.py,sha256=
|
|
5
|
-
testgres/postgres_configuration/core/data_verificator.py,sha256=
|
|
4
|
+
testgres/postgres_configuration/core/controller_utils.py,sha256=rrK0__e7u6NyL_DSWZa-csYSNMerLc_9t5OS1AY45SI,35911
|
|
5
|
+
testgres/postgres_configuration/core/data_verificator.py,sha256=Sljk2O-Xe9wXgap99thaoj5or93nsgT8mznmB0B97jg,1927
|
|
6
6
|
testgres/postgres_configuration/core/handlers.py,sha256=wbStWTVWC7DxwevHeNwZq4iVTt42auv2LoaFYCXgRdk,15708
|
|
7
|
-
testgres/postgres_configuration/core/helpers.py,sha256=
|
|
7
|
+
testgres/postgres_configuration/core/helpers.py,sha256=uMGsbdrv9lkRx5gL-n31RclX-j6atGIkqd353tVB1qA,2990
|
|
8
8
|
testgres/postgres_configuration/core/model.py,sha256=SlGtXqIlG89qI0ydWu9sHv6Okr0aPfo0DzKN1ZrYz-8,9080
|
|
9
9
|
testgres/postgres_configuration/core/raise_error.py,sha256=yLAxA7IsqiQpV9-ptARq0uih97TJRa-cGGOHWc0kTro,15556
|
|
10
10
|
testgres/postgres_configuration/core/read_utils.py,sha256=zJe3Lgofo8CqWt1vQAvHmzfjOXT8Jl5BmkZ_B00SHJE,8833
|
|
11
|
-
testgres/postgres_configuration/core/write_utils.py,sha256=
|
|
11
|
+
testgres/postgres_configuration/core/write_utils.py,sha256=nhcgvvsdAVez8eTpytnizDety-p4nsjcs5WALxMaDHg,3020
|
|
12
12
|
testgres/postgres_configuration/core/option/handlers/add/option_handler_to_add__std.py,sha256=CTXaEJDKyhgVeIOTgb6ulWwmhk9XeC6r4AnLcxaX2YA,1456
|
|
13
13
|
testgres/postgres_configuration/core/option/handlers/get_value/option_handler_to_get_value__std__simple.py,sha256=GZBgo4I1u1W4yRy5XNP7xPftKD2Y2kWw1cedMyfy6n4,1339
|
|
14
14
|
testgres/postgres_configuration/core/option/handlers/get_value/option_handler_to_get_value__std__union_list.py,sha256=NGmqpEWnoe4BseRqjR9G-lR2As0WMtUr9SqS3pUVXk8,1348
|
|
@@ -16,12 +16,12 @@ testgres/postgres_configuration/core/option/handlers/prepare_get_value/option_ha
|
|
|
16
16
|
testgres/postgres_configuration/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__generic.py,sha256=hP96cl8QkaQkuvXQ2Rxq2GAQBB2c_BqNC1AOaO58XNo,1495
|
|
17
17
|
testgres/postgres_configuration/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__int.py,sha256=mHSXxDTJBs5l-biZzsJVwLT9WLIK2v5Ea6KkUPQnt2Y,1188
|
|
18
18
|
testgres/postgres_configuration/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__str.py,sha256=YYvqMmFM-_Mg8EFFIyDk_v7y-z1CWmYpUwNlLvWTt9A,1188
|
|
19
|
-
testgres/postgres_configuration/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__unique_str_list.py,sha256=
|
|
19
|
+
testgres/postgres_configuration/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__unique_str_list.py,sha256=_pGpp6l4OHkb7LeT0hhdaNqcfIV-X6ZcWzIqUx0pZTw,1463
|
|
20
20
|
testgres/postgres_configuration/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__bool.py,sha256=_jqoyVCSXDC3wUKnbfodc_OHOKnz4rSoL1qW-iBMneY,3312
|
|
21
21
|
testgres/postgres_configuration/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__generic.py,sha256=1YSseKhur3bv0ZF2TP62UpZa3hGB2v0A9ZGTeJ4emHQ,1495
|
|
22
22
|
testgres/postgres_configuration/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__int.py,sha256=27V7ihWENfFIFTeDvvy1-FpOlkI-xSMkOYlfvYvCx5s,1607
|
|
23
23
|
testgres/postgres_configuration/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__str.py,sha256=KCz_l7IuhPxNLasWUa3to0X5nsRS3s3ade6FK0LHcM4,1400
|
|
24
|
-
testgres/postgres_configuration/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__unique_str_list.py,sha256=
|
|
24
|
+
testgres/postgres_configuration/core/option/handlers/prepare_set_value/option_handler_to_prepare_set_value__std__unique_str_list.py,sha256=0fHcfRA8DzmXAgf6qE_gS6nOxs9DKOl-PhHPaTNXJsE,2069
|
|
25
25
|
testgres/postgres_configuration/core/option/handlers/prepare_set_value_item/option_handler_to_prepare_set_value_item__std__str.py,sha256=8cSW8UoEndrWMnl32fVCytkRpDPTSYnyaIh-N9PP_5U,1462
|
|
26
26
|
testgres/postgres_configuration/core/option/handlers/set_value/option_handler_to_set_value__std__simple.py,sha256=3ox5V6Q9GtP3_iuaiICeY2SmMygjMLGBOVSSx5McIgo,1393
|
|
27
27
|
testgres/postgres_configuration/core/option/handlers/set_value_item/option_handler_to_set_value_item__std__unique.py,sha256=4BTN8uC2QHG1phhFdk-ocInkb3DQUSqSsi_VQ2dRwco,1436
|
|
@@ -30,12 +30,12 @@ testgres/postgres_configuration/core/option/handlers/write/option_handler_to_wri
|
|
|
30
30
|
testgres/postgres_configuration/core/option/handlers/write/option_handler_to_write__std__int.py,sha256=Tk7HR8t56-crW8AamTwNvnSeJvZ1XZ76JHe8aRa5WyE,899
|
|
31
31
|
testgres/postgres_configuration/core/option/handlers/write/option_handler_to_write__std__str.py,sha256=l84jTgIOQfVVdJACnOpSql1ovqHn_Ez5DdbCQs-MTKw,1113
|
|
32
32
|
testgres/postgres_configuration/core/option/handlers/write/option_handler_to_write__std__unique_str_list.py,sha256=kS-H4tnfMRNiJANWAPaglvkzBC4ElJXNNauUy4RC4ZU,1225
|
|
33
|
-
testgres/postgres_configuration/implementation/v00/configuration_base.py,sha256
|
|
34
|
-
testgres/postgres_configuration/implementation/v00/configuration_std.py,sha256=
|
|
33
|
+
testgres/postgres_configuration/implementation/v00/configuration_base.py,sha256=MJaqLFOdG4IXVKcYIYUHgvRSQsKCsDF6slLnQ1urdcc,166114
|
|
34
|
+
testgres/postgres_configuration/implementation/v00/configuration_std.py,sha256=s8vb8M3222_4Rz0iGnt-tKQIYlVS7AAFEWt5GAnKiT0,22246
|
|
35
35
|
testgres/postgres_configuration/os/abstract/configuration_os_ops.py,sha256=EPuLSI164dMkxWIo-KAOugqAdP7aKihPE998VDdedOQ,3455
|
|
36
36
|
testgres/postgres_configuration/os/local/configuration_os_ops.py,sha256=U6OwpJjtXdLoJcgWEq7tWrRKLlugx4Yt92KVHUspokw,4716
|
|
37
|
-
testgres_postgres_configuration-0.
|
|
38
|
-
testgres_postgres_configuration-0.
|
|
39
|
-
testgres_postgres_configuration-0.
|
|
40
|
-
testgres_postgres_configuration-0.
|
|
41
|
-
testgres_postgres_configuration-0.
|
|
37
|
+
testgres_postgres_configuration-0.4.0.dist-info/licenses/LICENSE,sha256=ebtnafulR5FPVjJemuPdFkjCFIB6qm83oDMkGQe3m8g,1106
|
|
38
|
+
testgres_postgres_configuration-0.4.0.dist-info/METADATA,sha256=T51SYED40G94GoZbEDtVAYt24mxPxCW-3QHGghT1GNI,1685
|
|
39
|
+
testgres_postgres_configuration-0.4.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
40
|
+
testgres_postgres_configuration-0.4.0.dist-info/top_level.txt,sha256=h3p7lbyKyHqMCDMOX8sDPwbGh0aJDyJMce5SRkBmKQo,9
|
|
41
|
+
testgres_postgres_configuration-0.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|