<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daralib</author_name>
  <author_url>https://blog.hatena.ne.jp/daralib/</author_url>
  <blog_title>だら＄ちっぷす</blog_title>
  <blog_url>https://daralib.hatenablog.com/</blog_url>
  <categories>
    <anon>node.js</anon>
    <anon>express</anon>
    <anon>postgreSQL</anon>
    <anon>promise</anon>
    <anon>async</anon>
  </categories>
  <description>★2019-12-19 これもasyncで書き直しました！ （関数をasyncって宣言すると、その関数内ではawaitってキャストした関数が 同期になるよ！ただしpromise返すやつだけ） 【サーバ側】 app.post('/sql/ins_work', async (req, res) =&gt; { const sql = 'insert into work(' + 'userid,' + 'qno,' + 'anstime' + ')' + ' values(' + '$1,' + '$2,' + 'to_timestamp($3 / 1000.0)' + ')'; const values…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaralib.hatenablog.com%2Fentry%2F2019%2F11%2F14%2F000000&quot; title=&quot;Node.js POSTを使ってPostgreSQL にinsertする - だら＄ちっぷす&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-14 00:00:00</published>
  <title>Node.js POSTを使ってPostgreSQL にinsertする</title>
  <type>rich</type>
  <url>https://daralib.hatenablog.com/entry/2019/11/14/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
