Projet

Général

Profil

Development #56164

pouvoir lancer des commandes SQL en fin de synchronisation

Ajouté par Benjamin Dauvergne il y a plus de 2 ans. Mis à jour il y a plus de 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
14 août 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Ex.:

[wcs-olap]
post-sync-commands = ALTER DEFAULT PRIVILEGES IN SCHEMA {schema} GRANT SELECT ON TABLES TO user;
  GRANT USAGE ON SCHEMA {schema} TO user;
  GRANT SELECT ON ALL TABLES IN SCHEMA {schema}  TO user;

Fichiers

Révisions associées

Révision 47a85d85 (diff)
Ajouté par Benjamin Dauvergne il y a plus de 2 ans

feeder: add option post-sync-commands (#56164)

Exemple:

[wcs-olap]
post-sync-commands = ALTER DEFAULT PRIVILEGES IN SCHEMA {schema} GRANT SELECT ON TABLES TO user;
GRANT USAGE ON SCHEMA {schema} TO user;
GRANT SELECT ON ALL TABLES IN SCHEMA {schema} TO user;

Those commands will be launched after the synchronization, interpolation
variables are usable (like {schema} for the target schema name).

Historique

#1

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

#2

Mis à jour par Serghei Mihai il y a plus de 2 ans

  • Statut changé de Solution proposée à Solution validée
#3

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 47a85d85315ae15f0a8f03cac4db3d810cc0d692
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Sat Aug 14 11:19:32 2021 +0200

    feeder: add option post-sync-commands (#56164)

    Exemple:

      [wcs-olap]
      post-sync-commands = ALTER DEFAULT PRIVILEGES IN SCHEMA {schema} GRANT SELECT ON TABLES TO user;
        GRANT USAGE ON SCHEMA {schema} TO user;
        GRANT SELECT ON ALL TABLES IN SCHEMA {schema}  TO user;

    Those commands will be launched after the synchronization, interpolation
    variables are usable (like {schema} for the target schema name).
#4

Mis à jour par Frédéric Péters il y a plus de 2 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF