1
0

hstore.go 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. // Code generated by sqlc-pg-gen. DO NOT EDIT.
  2. package contrib
  3. import (
  4. "github.com/sqlc-dev/sqlc/internal/sql/ast"
  5. "github.com/sqlc-dev/sqlc/internal/sql/catalog"
  6. )
  7. var funcsHstore = []*catalog.Function{
  8. {
  9. Name: "akeys",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "hstore"},
  13. },
  14. },
  15. ReturnType: &ast.TypeName{Name: "text[]"},
  16. },
  17. {
  18. Name: "avals",
  19. Args: []*catalog.Argument{
  20. {
  21. Type: &ast.TypeName{Name: "hstore"},
  22. },
  23. },
  24. ReturnType: &ast.TypeName{Name: "text[]"},
  25. },
  26. {
  27. Name: "defined",
  28. Args: []*catalog.Argument{
  29. {
  30. Type: &ast.TypeName{Name: "hstore"},
  31. },
  32. {
  33. Type: &ast.TypeName{Name: "text"},
  34. },
  35. },
  36. ReturnType: &ast.TypeName{Name: "boolean"},
  37. },
  38. {
  39. Name: "delete",
  40. Args: []*catalog.Argument{
  41. {
  42. Type: &ast.TypeName{Name: "hstore"},
  43. },
  44. {
  45. Type: &ast.TypeName{Name: "hstore"},
  46. },
  47. },
  48. ReturnType: &ast.TypeName{Name: "hstore"},
  49. },
  50. {
  51. Name: "delete",
  52. Args: []*catalog.Argument{
  53. {
  54. Type: &ast.TypeName{Name: "hstore"},
  55. },
  56. {
  57. Type: &ast.TypeName{Name: "text"},
  58. },
  59. },
  60. ReturnType: &ast.TypeName{Name: "hstore"},
  61. },
  62. {
  63. Name: "delete",
  64. Args: []*catalog.Argument{
  65. {
  66. Type: &ast.TypeName{Name: "hstore"},
  67. },
  68. {
  69. Type: &ast.TypeName{Name: "text[]"},
  70. },
  71. },
  72. ReturnType: &ast.TypeName{Name: "hstore"},
  73. },
  74. {
  75. Name: "each",
  76. Args: []*catalog.Argument{
  77. {
  78. Name: "hs",
  79. Type: &ast.TypeName{Name: "hstore"},
  80. },
  81. },
  82. ReturnType: &ast.TypeName{Name: "record"},
  83. },
  84. {
  85. Name: "exist",
  86. Args: []*catalog.Argument{
  87. {
  88. Type: &ast.TypeName{Name: "hstore"},
  89. },
  90. {
  91. Type: &ast.TypeName{Name: "text"},
  92. },
  93. },
  94. ReturnType: &ast.TypeName{Name: "boolean"},
  95. },
  96. {
  97. Name: "exists_all",
  98. Args: []*catalog.Argument{
  99. {
  100. Type: &ast.TypeName{Name: "hstore"},
  101. },
  102. {
  103. Type: &ast.TypeName{Name: "text[]"},
  104. },
  105. },
  106. ReturnType: &ast.TypeName{Name: "boolean"},
  107. },
  108. {
  109. Name: "exists_any",
  110. Args: []*catalog.Argument{
  111. {
  112. Type: &ast.TypeName{Name: "hstore"},
  113. },
  114. {
  115. Type: &ast.TypeName{Name: "text[]"},
  116. },
  117. },
  118. ReturnType: &ast.TypeName{Name: "boolean"},
  119. },
  120. {
  121. Name: "fetchval",
  122. Args: []*catalog.Argument{
  123. {
  124. Type: &ast.TypeName{Name: "hstore"},
  125. },
  126. {
  127. Type: &ast.TypeName{Name: "text"},
  128. },
  129. },
  130. ReturnType: &ast.TypeName{Name: "text"},
  131. },
  132. {
  133. Name: "ghstore_in",
  134. Args: []*catalog.Argument{
  135. {
  136. Type: &ast.TypeName{Name: "cstring"},
  137. },
  138. },
  139. ReturnType: &ast.TypeName{Name: "ghstore"},
  140. },
  141. {
  142. Name: "ghstore_out",
  143. Args: []*catalog.Argument{
  144. {
  145. Type: &ast.TypeName{Name: "ghstore"},
  146. },
  147. },
  148. ReturnType: &ast.TypeName{Name: "cstring"},
  149. },
  150. {
  151. Name: "hs_concat",
  152. Args: []*catalog.Argument{
  153. {
  154. Type: &ast.TypeName{Name: "hstore"},
  155. },
  156. {
  157. Type: &ast.TypeName{Name: "hstore"},
  158. },
  159. },
  160. ReturnType: &ast.TypeName{Name: "hstore"},
  161. },
  162. {
  163. Name: "hs_contained",
  164. Args: []*catalog.Argument{
  165. {
  166. Type: &ast.TypeName{Name: "hstore"},
  167. },
  168. {
  169. Type: &ast.TypeName{Name: "hstore"},
  170. },
  171. },
  172. ReturnType: &ast.TypeName{Name: "boolean"},
  173. },
  174. {
  175. Name: "hs_contains",
  176. Args: []*catalog.Argument{
  177. {
  178. Type: &ast.TypeName{Name: "hstore"},
  179. },
  180. {
  181. Type: &ast.TypeName{Name: "hstore"},
  182. },
  183. },
  184. ReturnType: &ast.TypeName{Name: "boolean"},
  185. },
  186. {
  187. Name: "hstore",
  188. Args: []*catalog.Argument{
  189. {
  190. Type: &ast.TypeName{Name: "record"},
  191. },
  192. },
  193. ReturnType: &ast.TypeName{Name: "hstore"},
  194. },
  195. {
  196. Name: "hstore",
  197. Args: []*catalog.Argument{
  198. {
  199. Type: &ast.TypeName{Name: "text"},
  200. },
  201. {
  202. Type: &ast.TypeName{Name: "text"},
  203. },
  204. },
  205. ReturnType: &ast.TypeName{Name: "hstore"},
  206. },
  207. {
  208. Name: "hstore",
  209. Args: []*catalog.Argument{
  210. {
  211. Type: &ast.TypeName{Name: "text[]"},
  212. },
  213. },
  214. ReturnType: &ast.TypeName{Name: "hstore"},
  215. },
  216. {
  217. Name: "hstore",
  218. Args: []*catalog.Argument{
  219. {
  220. Type: &ast.TypeName{Name: "text[]"},
  221. },
  222. {
  223. Type: &ast.TypeName{Name: "text[]"},
  224. },
  225. },
  226. ReturnType: &ast.TypeName{Name: "hstore"},
  227. },
  228. {
  229. Name: "hstore_cmp",
  230. Args: []*catalog.Argument{
  231. {
  232. Type: &ast.TypeName{Name: "hstore"},
  233. },
  234. {
  235. Type: &ast.TypeName{Name: "hstore"},
  236. },
  237. },
  238. ReturnType: &ast.TypeName{Name: "integer"},
  239. },
  240. {
  241. Name: "hstore_eq",
  242. Args: []*catalog.Argument{
  243. {
  244. Type: &ast.TypeName{Name: "hstore"},
  245. },
  246. {
  247. Type: &ast.TypeName{Name: "hstore"},
  248. },
  249. },
  250. ReturnType: &ast.TypeName{Name: "boolean"},
  251. },
  252. {
  253. Name: "hstore_ge",
  254. Args: []*catalog.Argument{
  255. {
  256. Type: &ast.TypeName{Name: "hstore"},
  257. },
  258. {
  259. Type: &ast.TypeName{Name: "hstore"},
  260. },
  261. },
  262. ReturnType: &ast.TypeName{Name: "boolean"},
  263. },
  264. {
  265. Name: "hstore_gt",
  266. Args: []*catalog.Argument{
  267. {
  268. Type: &ast.TypeName{Name: "hstore"},
  269. },
  270. {
  271. Type: &ast.TypeName{Name: "hstore"},
  272. },
  273. },
  274. ReturnType: &ast.TypeName{Name: "boolean"},
  275. },
  276. {
  277. Name: "hstore_hash",
  278. Args: []*catalog.Argument{
  279. {
  280. Type: &ast.TypeName{Name: "hstore"},
  281. },
  282. },
  283. ReturnType: &ast.TypeName{Name: "integer"},
  284. },
  285. {
  286. Name: "hstore_hash_extended",
  287. Args: []*catalog.Argument{
  288. {
  289. Type: &ast.TypeName{Name: "hstore"},
  290. },
  291. {
  292. Type: &ast.TypeName{Name: "bigint"},
  293. },
  294. },
  295. ReturnType: &ast.TypeName{Name: "bigint"},
  296. },
  297. {
  298. Name: "hstore_in",
  299. Args: []*catalog.Argument{
  300. {
  301. Type: &ast.TypeName{Name: "cstring"},
  302. },
  303. },
  304. ReturnType: &ast.TypeName{Name: "hstore"},
  305. },
  306. {
  307. Name: "hstore_le",
  308. Args: []*catalog.Argument{
  309. {
  310. Type: &ast.TypeName{Name: "hstore"},
  311. },
  312. {
  313. Type: &ast.TypeName{Name: "hstore"},
  314. },
  315. },
  316. ReturnType: &ast.TypeName{Name: "boolean"},
  317. },
  318. {
  319. Name: "hstore_lt",
  320. Args: []*catalog.Argument{
  321. {
  322. Type: &ast.TypeName{Name: "hstore"},
  323. },
  324. {
  325. Type: &ast.TypeName{Name: "hstore"},
  326. },
  327. },
  328. ReturnType: &ast.TypeName{Name: "boolean"},
  329. },
  330. {
  331. Name: "hstore_ne",
  332. Args: []*catalog.Argument{
  333. {
  334. Type: &ast.TypeName{Name: "hstore"},
  335. },
  336. {
  337. Type: &ast.TypeName{Name: "hstore"},
  338. },
  339. },
  340. ReturnType: &ast.TypeName{Name: "boolean"},
  341. },
  342. {
  343. Name: "hstore_out",
  344. Args: []*catalog.Argument{
  345. {
  346. Type: &ast.TypeName{Name: "hstore"},
  347. },
  348. },
  349. ReturnType: &ast.TypeName{Name: "cstring"},
  350. },
  351. {
  352. Name: "hstore_send",
  353. Args: []*catalog.Argument{
  354. {
  355. Type: &ast.TypeName{Name: "hstore"},
  356. },
  357. },
  358. ReturnType: &ast.TypeName{Name: "bytea"},
  359. },
  360. {
  361. Name: "hstore_to_array",
  362. Args: []*catalog.Argument{
  363. {
  364. Type: &ast.TypeName{Name: "hstore"},
  365. },
  366. },
  367. ReturnType: &ast.TypeName{Name: "text[]"},
  368. },
  369. {
  370. Name: "hstore_to_json",
  371. Args: []*catalog.Argument{
  372. {
  373. Type: &ast.TypeName{Name: "hstore"},
  374. },
  375. },
  376. ReturnType: &ast.TypeName{Name: "json"},
  377. },
  378. {
  379. Name: "hstore_to_json_loose",
  380. Args: []*catalog.Argument{
  381. {
  382. Type: &ast.TypeName{Name: "hstore"},
  383. },
  384. },
  385. ReturnType: &ast.TypeName{Name: "json"},
  386. },
  387. {
  388. Name: "hstore_to_jsonb",
  389. Args: []*catalog.Argument{
  390. {
  391. Type: &ast.TypeName{Name: "hstore"},
  392. },
  393. },
  394. ReturnType: &ast.TypeName{Name: "jsonb"},
  395. },
  396. {
  397. Name: "hstore_to_jsonb_loose",
  398. Args: []*catalog.Argument{
  399. {
  400. Type: &ast.TypeName{Name: "hstore"},
  401. },
  402. },
  403. ReturnType: &ast.TypeName{Name: "jsonb"},
  404. },
  405. {
  406. Name: "hstore_to_matrix",
  407. Args: []*catalog.Argument{
  408. {
  409. Type: &ast.TypeName{Name: "hstore"},
  410. },
  411. },
  412. ReturnType: &ast.TypeName{Name: "text[]"},
  413. },
  414. {
  415. Name: "hstore_version_diag",
  416. Args: []*catalog.Argument{
  417. {
  418. Type: &ast.TypeName{Name: "hstore"},
  419. },
  420. },
  421. ReturnType: &ast.TypeName{Name: "integer"},
  422. },
  423. {
  424. Name: "isdefined",
  425. Args: []*catalog.Argument{
  426. {
  427. Type: &ast.TypeName{Name: "hstore"},
  428. },
  429. {
  430. Type: &ast.TypeName{Name: "text"},
  431. },
  432. },
  433. ReturnType: &ast.TypeName{Name: "boolean"},
  434. },
  435. {
  436. Name: "isexists",
  437. Args: []*catalog.Argument{
  438. {
  439. Type: &ast.TypeName{Name: "hstore"},
  440. },
  441. {
  442. Type: &ast.TypeName{Name: "text"},
  443. },
  444. },
  445. ReturnType: &ast.TypeName{Name: "boolean"},
  446. },
  447. {
  448. Name: "populate_record",
  449. Args: []*catalog.Argument{
  450. {
  451. Type: &ast.TypeName{Name: "anyelement"},
  452. },
  453. {
  454. Type: &ast.TypeName{Name: "hstore"},
  455. },
  456. },
  457. ReturnType: &ast.TypeName{Name: "anyelement"},
  458. },
  459. {
  460. Name: "skeys",
  461. Args: []*catalog.Argument{
  462. {
  463. Type: &ast.TypeName{Name: "hstore"},
  464. },
  465. },
  466. ReturnType: &ast.TypeName{Name: "text"},
  467. },
  468. {
  469. Name: "slice",
  470. Args: []*catalog.Argument{
  471. {
  472. Type: &ast.TypeName{Name: "hstore"},
  473. },
  474. {
  475. Type: &ast.TypeName{Name: "text[]"},
  476. },
  477. },
  478. ReturnType: &ast.TypeName{Name: "hstore"},
  479. },
  480. {
  481. Name: "slice_array",
  482. Args: []*catalog.Argument{
  483. {
  484. Type: &ast.TypeName{Name: "hstore"},
  485. },
  486. {
  487. Type: &ast.TypeName{Name: "text[]"},
  488. },
  489. },
  490. ReturnType: &ast.TypeName{Name: "text[]"},
  491. },
  492. {
  493. Name: "svals",
  494. Args: []*catalog.Argument{
  495. {
  496. Type: &ast.TypeName{Name: "hstore"},
  497. },
  498. },
  499. ReturnType: &ast.TypeName{Name: "text"},
  500. },
  501. {
  502. Name: "tconvert",
  503. Args: []*catalog.Argument{
  504. {
  505. Type: &ast.TypeName{Name: "text"},
  506. },
  507. {
  508. Type: &ast.TypeName{Name: "text"},
  509. },
  510. },
  511. ReturnType: &ast.TypeName{Name: "hstore"},
  512. },
  513. }
  514. func Hstore() *catalog.Schema {
  515. s := &catalog.Schema{Name: "pg_catalog"}
  516. s.Funcs = funcsHstore
  517. return s
  518. }