aboutsummaryrefslogtreecommitdiff
path: root/crates/secd/store/pg/sql/write_impersonator.sql
blob: b67b73895767341ab82cfd68a24fd85d4be54470 (plain)
1
2
3
4
5
6
7
8
9
10
11
insert into secd.impersonator (
    impersonator_id
    , target_id
    , credential_id
    , created_at
) values (
  (select identity_id from secd.identity where identity_public_id = $1)
  , (select identity_id from secd.identity where identity_public_id = $2)
  , (select credential_id from secd.credential where credential_public_id = $3)
  , $4
);