我们有一个Postgre RDS实例,每5秒插入一次新数据.我们想根据读数设置一些警报.
从理论上讲,我们应该设置一个具有相应功能的触发器来比较该值并发出一个通知,然后由脚本进行监听,如本教程中所述.
但是,功能pg_notify在Amazon的RDS中不可用.除了每隔几秒扫描一次表更新之外,还有其他方法吗?
谢谢!
这个 GatsbyJS/antd 插件页面 ( https://github.com/bskimball/gatsby-plugin-antd/issues/2 ) 使得在使用 GatsbyJS 时似乎有一种方法可以编辑 ant.design (antd) 主题。提供的代码是
plugins: [
{
resolve: 'gatsby-plugin-antd',
options: {
style: true
}
}
]
Run Code Online (Sandbox Code Playgroud)
但没有额外的信息。在哪里可以更改主题原色之类的内容(如所述:https : //ant.design/docs/react/customize-theme)。ant.design 页面 ( https://ant.design/docs/react/customize-theme ) 说通过执行以下操作来更改主要颜色:
"theme": {
"primary-color": "#1DA57A",
},
Run Code Online (Sandbox Code Playgroud)
目前尚不清楚在 GatbsyJS 中将在哪个文件中设置这样的变量。