a.kee as "key",
a.uuid as "uuid",
a.alm_id as "rawAlm",
a.url as "url",
a.app_id as "appId",
a.private_key as "privateKey",
a.pat as "personalAccessToken",
a.client_id as "clientId",
a.client_secret as "clientSecret",
a.created_at as "createdAt",
a.updated_at as "updatedAt",
a.webhook_secret as "webhookSecret"
INSERT INTO alm_settings
(
uuid,
kee,
alm_id,
url,
app_id,
private_key,
pat,
client_id,
client_secret,
created_at,
updated_at,
webhook_secret
)
VALUES (
#{dto.uuid, jdbcType=VARCHAR},
#{dto.key, jdbcType=VARCHAR},
#{dto.rawAlm, jdbcType=VARCHAR},
#{dto.url, jdbcType=VARCHAR},
#{dto.appId, jdbcType=VARCHAR},
#{dto.privateKey, jdbcType=VARCHAR},
#{dto.personalAccessToken, jdbcType=VARCHAR},
#{dto.clientId, jdbcType=VARCHAR},
#{dto.clientSecret, jdbcType=VARCHAR},
#{dto.createdAt, jdbcType=BIGINT},
#{dto.updatedAt, jdbcType=BIGINT},
#{dto.webhookSecret, jdbcType=VARCHAR}
)
UPDATE alm_settings
kee = #{dto.key, jdbcType=VARCHAR},
url = #{dto.url, jdbcType=VARCHAR},
app_id = #{dto.appId, jdbcType=VARCHAR},
private_key = #{dto.privateKey, jdbcType=VARCHAR},
pat = #{dto.personalAccessToken, jdbcType=VARCHAR},
client_id = #{dto.clientId, jdbcType=VARCHAR},
client_secret = #{dto.clientSecret, jdbcType=VARCHAR},
updated_at = #{dto.updatedAt, jdbcType=BIGINT},
webhook_secret = #{dto.webhookSecret, jdbcType=VARCHAR}
uuid = #{dto.uuid, jdbcType=VARCHAR}
DELETE FROM alm_settings WHERE kee = #{key, jdbcType=VARCHAR}