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