种子
我给我的数据库添加种子。
curl -s http://site/api/seed/user/1000
测试
我做了
psql --username=nm -d portal -h 192.168.1.27 -c "SELECT count(*) from users;"
我得到了
count
-------
1000
(1 row)
观看
watch psql --username=nm -d portal -h 192.168.1.27 -c "SELECT count(*) from users;"
我得到了
Every 2.0s: psql --username=nm -d portal -h 192.168.1.27 -... bh-macbook-pro-15-512gb.local: Tue Nov 21 15:19:08 2017
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `psql --username=nm -d portal -h 192.168.1.27 -c SELECT count(*) from users;'
我该如何修复这个错误?
watch
? - Barmarwatch
命令每1秒钟重新运行同一条命令。 - code-8watch
中的一个错误,它没有重新引用参数。 - Barmarwatch
命令将显示我数据库中表的增量计数。 - code-8