query-91af982bb1418227fed7787bba39e3fab97337e7983061e6ffd7535d2674250c.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {
  2. "db_name": "PostgreSQL",
  3. "query": "INSERT INTO redirect_uris (id, uri, kind, description, created_by, created_at, updated_at, uri_enc, uri_index) VALUES ($1, $2, $3, $4, $5, now(), now(), $6, $7) ON CONFLICT (uri_index, kind) WHERE uri_index IS NOT NULL DO UPDATE SET updated_at = now() RETURNING id, uri, kind, enabled, description, created_by, created_at, updated_at, uri_enc, (xmax = 0) AS \"inserted!\"",
  4. "describe": {
  5. "columns": [
  6. {
  7. "ordinal": 0,
  8. "name": "id",
  9. "type_info": "Uuid",
  10. "origin": {
  11. "Table": {
  12. "table": "redirect_uris",
  13. "name": "id"
  14. }
  15. }
  16. },
  17. {
  18. "ordinal": 1,
  19. "name": "uri",
  20. "type_info": "Text",
  21. "origin": {
  22. "Table": {
  23. "table": "redirect_uris",
  24. "name": "uri"
  25. }
  26. }
  27. },
  28. {
  29. "ordinal": 2,
  30. "name": "kind",
  31. "type_info": "Text",
  32. "origin": {
  33. "Table": {
  34. "table": "redirect_uris",
  35. "name": "kind"
  36. }
  37. }
  38. },
  39. {
  40. "ordinal": 3,
  41. "name": "enabled",
  42. "type_info": "Bool",
  43. "origin": {
  44. "Table": {
  45. "table": "redirect_uris",
  46. "name": "enabled"
  47. }
  48. }
  49. },
  50. {
  51. "ordinal": 4,
  52. "name": "description",
  53. "type_info": "Text",
  54. "origin": {
  55. "Table": {
  56. "table": "redirect_uris",
  57. "name": "description"
  58. }
  59. }
  60. },
  61. {
  62. "ordinal": 5,
  63. "name": "created_by",
  64. "type_info": "Uuid",
  65. "origin": {
  66. "Table": {
  67. "table": "redirect_uris",
  68. "name": "created_by"
  69. }
  70. }
  71. },
  72. {
  73. "ordinal": 6,
  74. "name": "created_at",
  75. "type_info": "Timestamptz",
  76. "origin": {
  77. "Table": {
  78. "table": "redirect_uris",
  79. "name": "created_at"
  80. }
  81. }
  82. },
  83. {
  84. "ordinal": 7,
  85. "name": "updated_at",
  86. "type_info": "Timestamptz",
  87. "origin": {
  88. "Table": {
  89. "table": "redirect_uris",
  90. "name": "updated_at"
  91. }
  92. }
  93. },
  94. {
  95. "ordinal": 8,
  96. "name": "uri_enc",
  97. "type_info": "Bytea",
  98. "origin": {
  99. "Table": {
  100. "table": "redirect_uris",
  101. "name": "uri_enc"
  102. }
  103. }
  104. },
  105. {
  106. "ordinal": 9,
  107. "name": "inserted!",
  108. "type_info": "Bool",
  109. "origin": "Expression"
  110. }
  111. ],
  112. "parameters": {
  113. "Left": [
  114. "Uuid",
  115. "Text",
  116. "Text",
  117. "Text",
  118. "Uuid",
  119. "Bytea",
  120. "Text"
  121. ]
  122. },
  123. "nullable": [
  124. false,
  125. true,
  126. false,
  127. false,
  128. false,
  129. true,
  130. false,
  131. false,
  132. true,
  133. null
  134. ]
  135. },
  136. "hash": "91af982bb1418227fed7787bba39e3fab97337e7983061e6ffd7535d2674250c"
  137. }