query-5806efa2899b31394c5c19362edf0fe92565ba08bb78435727f4acc331c11506.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "db_name": "PostgreSQL",
  3. "query": "INSERT INTO scopes (name, description, enabled, created_at, updated_at)\n VALUES ($1, $2, true, now(), now())\n ON CONFLICT (name) DO UPDATE\n SET description = EXCLUDED.description, updated_at = now()\n RETURNING name, description, enabled",
  4. "describe": {
  5. "columns": [
  6. {
  7. "ordinal": 0,
  8. "name": "name",
  9. "type_info": "Text",
  10. "origin": {
  11. "Table": {
  12. "table": "scopes",
  13. "name": "name"
  14. }
  15. }
  16. },
  17. {
  18. "ordinal": 1,
  19. "name": "description",
  20. "type_info": "Text",
  21. "origin": {
  22. "Table": {
  23. "table": "scopes",
  24. "name": "description"
  25. }
  26. }
  27. },
  28. {
  29. "ordinal": 2,
  30. "name": "enabled",
  31. "type_info": "Bool",
  32. "origin": {
  33. "Table": {
  34. "table": "scopes",
  35. "name": "enabled"
  36. }
  37. }
  38. }
  39. ],
  40. "parameters": {
  41. "Left": [
  42. "Text",
  43. "Text"
  44. ]
  45. },
  46. "nullable": [
  47. false,
  48. false,
  49. false
  50. ]
  51. },
  52. "hash": "5806efa2899b31394c5c19362edf0fe92565ba08bb78435727f4acc331c11506"
  53. }