mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(ql3): enforce staged secret binding persistence
This commit is contained in:
@@ -301,6 +301,16 @@ function databaseResource(events, options = {}) {
|
||||
})),
|
||||
};
|
||||
}
|
||||
if (text.includes('FROM pg_trigger triggers')) {
|
||||
return {
|
||||
rows: contract.triggers.map((definition) => ({
|
||||
triggerName: definition.name,
|
||||
tableName: definition.tableName,
|
||||
functionName: definition.functionName,
|
||||
enabled: 'O',
|
||||
})),
|
||||
};
|
||||
}
|
||||
if (text.includes('FROM pg_catalog.pg_roles')) {
|
||||
return {
|
||||
rows: [
|
||||
|
||||
@@ -215,6 +215,16 @@ function databaseResource(events, overrides = {}) {
|
||||
})),
|
||||
};
|
||||
}
|
||||
if (text.includes('FROM pg_trigger triggers')) {
|
||||
return {
|
||||
rows: contract.triggers.map((definition) => ({
|
||||
triggerName: definition.name,
|
||||
tableName: definition.tableName,
|
||||
functionName: definition.functionName,
|
||||
enabled: 'O',
|
||||
})),
|
||||
};
|
||||
}
|
||||
if (text.includes('FROM pg_catalog.pg_roles')) {
|
||||
return {
|
||||
rows: [
|
||||
|
||||
Reference in New Issue
Block a user