Skip to main content

max / makenotwork

742 B · 32 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "INSERT INTO chat_messages (community_id, author_id, body_html, expires_at)\n VALUES ($1, $2, $3, now() + make_interval(hours => $4))\n RETURNING id, EXTRACT(EPOCH FROM created_at)::BIGINT AS \"created_at!\"",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "id",
9 "type_info": "Int8"
10 },
11 {
12 "ordinal": 1,
13 "name": "created_at!",
14 "type_info": "Int8"
15 }
16 ],
17 "parameters": {
18 "Left": [
19 "Uuid",
20 "Uuid",
21 "Text",
22 "Int4"
23 ]
24 },
25 "nullable": [
26 false,
27 null
28 ]
29 },
30 "hash": "838adf82ee4c1e8c378626e84d3c7a6f7f3733d8cba64aa71e4991b654b49ff9"
31 }
32