lcdp-postgres-utils 1.6.0__tar.gz → 1.7.1__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.
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/PKG-INFO +1 -1
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executors/executor13.py +20 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/pyproject.toml +1 -1
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/__init__.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executor_factory.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executors/__init__.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executors/executor14.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executors/executor16.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/restricted_user.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/user.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/utils/__init__.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/utils/postgres.py +0 -0
- {lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/utils/ssm.py +0 -0
{lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executors/executor13.py
RENAMED
|
@@ -69,6 +69,15 @@ class Executor13:
|
|
|
69
69
|
$func$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT;
|
|
70
70
|
"""
|
|
71
71
|
|
|
72
|
+
def __create_immutable_timestamp_function(self):
|
|
73
|
+
return """
|
|
74
|
+
CREATE OR REPLACE FUNCTION immutable_timestamp(text)
|
|
75
|
+
RETURNS timestamp WITHOUT TIME ZONE AS
|
|
76
|
+
$func$
|
|
77
|
+
SELECT $1::timestamp
|
|
78
|
+
$func$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT;
|
|
79
|
+
"""
|
|
80
|
+
|
|
72
81
|
def __create_french_with_stop_word_dictionary(self):
|
|
73
82
|
return """
|
|
74
83
|
DO
|
|
@@ -251,6 +260,9 @@ class Executor13:
|
|
|
251
260
|
def __log_create_immutable_array_to_text_function_function(self):
|
|
252
261
|
return "Creation la fonction immutable de transformation de tableau en texte cherchable pour la base de donnees : {0} \n".format(self.database_name)
|
|
253
262
|
|
|
263
|
+
def __log_create_immutable_timestamp_function(self):
|
|
264
|
+
return "Creation de la fonction immutable de conversion text vers timestamp pour la base de donnees : {0} \n".format(self.database_name)
|
|
265
|
+
|
|
254
266
|
def __log_create_french_with_stop_word_dictionary(self):
|
|
255
267
|
return "Creation du dictionnaire français avec les mots de liaison inclu pour la base de donnees : {0} \n".format(self.database_name)
|
|
256
268
|
|
|
@@ -348,6 +360,10 @@ class Executor13:
|
|
|
348
360
|
self.cursor.execute(self.__create_immutable_array_to_text_function())
|
|
349
361
|
return self.__log_create_immutable_array_to_text_function_function()
|
|
350
362
|
|
|
363
|
+
def __execute_create_immutable_timestamp_function(self):
|
|
364
|
+
self.cursor.execute(self.__create_immutable_timestamp_function())
|
|
365
|
+
return self.__log_create_immutable_timestamp_function()
|
|
366
|
+
|
|
351
367
|
def __execute_create_french_with_stop_word_dictionary(self):
|
|
352
368
|
self.cursor.execute(self.__create_french_with_stop_word_dictionary())
|
|
353
369
|
return self.__log_create_french_with_stop_word_dictionary()
|
|
@@ -475,6 +491,10 @@ class Executor13:
|
|
|
475
491
|
log = self.__execute_create_immutable_array_to_text_function()
|
|
476
492
|
self.logs.extend(list(filter(None, [log])))
|
|
477
493
|
|
|
494
|
+
def create_immutable_timestamp_function(self):
|
|
495
|
+
log = self.__execute_create_immutable_timestamp_function()
|
|
496
|
+
self.logs.extend(list(filter(None, [log])))
|
|
497
|
+
|
|
478
498
|
def execute_create_french_with_stop_word_dictionary(self):
|
|
479
499
|
log = self.__execute_create_french_with_stop_word_dictionary()
|
|
480
500
|
self.logs.extend(list(filter(None, [log])))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "lcdp-postgres-utils"
|
|
3
3
|
# https://github.com/python-poetry/poetry/issues/1208
|
|
4
|
-
version = "1.
|
|
4
|
+
version = "1.7.1"
|
|
5
5
|
description = "Postgres Utils to create users, databases, functions, ..."
|
|
6
6
|
authors = ["Le Comptoir Des Pharmacies <webmaster@lecomptoirdespharmacies.fr>"]
|
|
7
7
|
|
|
File without changes
|
{lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executor_factory.py
RENAMED
|
File without changes
|
{lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executors/__init__.py
RENAMED
|
File without changes
|
{lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executors/executor14.py
RENAMED
|
File without changes
|
{lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/executors/executor16.py
RENAMED
|
File without changes
|
{lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/restricted_user.py
RENAMED
|
File without changes
|
|
File without changes
|
{lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/utils/__init__.py
RENAMED
|
File without changes
|
{lcdp_postgres_utils-1.6.0 → lcdp_postgres_utils-1.7.1}/lcdp_postgres_utils/utils/postgres.py
RENAMED
|
File without changes
|
|
File without changes
|