enebularでherokupostgres その3
概要
enebularでherokupostgresに繋いでみた。
参考にしたページ。
写真
setup
msg.payload = "CREATE TABLE sensordata_tbl(id SERIAL PRIMARY KEY, temperature numeric NOT NULL, roomname text, ts bigint NOT NULL);";
return msg;
select
msg.payload = "select * from sensordata_tbl;";
return msg;
insert
msg.payload = "insert into sensordata_tbl(roomname, temperature, ts) values ('living', 22.5, " + Date.now() + ");";
return msg;
drop
msg.payload = "drop table sensordata_tbl;";
return msg;
msg.payload = "CREATE TABLE sensordata_tbl(id SERIAL PRIMARY KEY, temperature numeric NOT NULL, roomname text, ts bigint NOT NULL);";
return msg;
msg.payload = "select * from sensordata_tbl;";
return msg;
insert
msg.payload = "insert into sensordata_tbl(roomname, temperature, ts) values ('living', 22.5, " + Date.now() + ");";
return msg;
drop
msg.payload = "drop table sensordata_tbl;";
return msg;
msg.payload = "insert into sensordata_tbl(roomname, temperature, ts) values ('living', 22.5, " + Date.now() + ");";
return msg;
msg.payload = "drop table sensordata_tbl;";
return msg;
以上。
Author And Source
この問題について(enebularでherokupostgres その3), 我々は、より多くの情報をここで見つけました https://qiita.com/ohisama@github/items/dd48fa20b4909274907a著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .