1
0

ltree.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  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 funcsLtree = []*catalog.Function{
  8. {
  9. Name: "_lt_q_regex",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "ltree[]"},
  13. },
  14. {
  15. Type: &ast.TypeName{Name: "lquery[]"},
  16. },
  17. },
  18. ReturnType: &ast.TypeName{Name: "boolean"},
  19. },
  20. {
  21. Name: "_lt_q_rregex",
  22. Args: []*catalog.Argument{
  23. {
  24. Type: &ast.TypeName{Name: "lquery[]"},
  25. },
  26. {
  27. Type: &ast.TypeName{Name: "ltree[]"},
  28. },
  29. },
  30. ReturnType: &ast.TypeName{Name: "boolean"},
  31. },
  32. {
  33. Name: "_ltq_extract_regex",
  34. Args: []*catalog.Argument{
  35. {
  36. Type: &ast.TypeName{Name: "ltree[]"},
  37. },
  38. {
  39. Type: &ast.TypeName{Name: "lquery"},
  40. },
  41. },
  42. ReturnType: &ast.TypeName{Name: "ltree"},
  43. },
  44. {
  45. Name: "_ltq_regex",
  46. Args: []*catalog.Argument{
  47. {
  48. Type: &ast.TypeName{Name: "ltree[]"},
  49. },
  50. {
  51. Type: &ast.TypeName{Name: "lquery"},
  52. },
  53. },
  54. ReturnType: &ast.TypeName{Name: "boolean"},
  55. },
  56. {
  57. Name: "_ltq_rregex",
  58. Args: []*catalog.Argument{
  59. {
  60. Type: &ast.TypeName{Name: "lquery"},
  61. },
  62. {
  63. Type: &ast.TypeName{Name: "ltree[]"},
  64. },
  65. },
  66. ReturnType: &ast.TypeName{Name: "boolean"},
  67. },
  68. {
  69. Name: "_ltree_extract_isparent",
  70. Args: []*catalog.Argument{
  71. {
  72. Type: &ast.TypeName{Name: "ltree[]"},
  73. },
  74. {
  75. Type: &ast.TypeName{Name: "ltree"},
  76. },
  77. },
  78. ReturnType: &ast.TypeName{Name: "ltree"},
  79. },
  80. {
  81. Name: "_ltree_extract_risparent",
  82. Args: []*catalog.Argument{
  83. {
  84. Type: &ast.TypeName{Name: "ltree[]"},
  85. },
  86. {
  87. Type: &ast.TypeName{Name: "ltree"},
  88. },
  89. },
  90. ReturnType: &ast.TypeName{Name: "ltree"},
  91. },
  92. {
  93. Name: "_ltree_isparent",
  94. Args: []*catalog.Argument{
  95. {
  96. Type: &ast.TypeName{Name: "ltree[]"},
  97. },
  98. {
  99. Type: &ast.TypeName{Name: "ltree"},
  100. },
  101. },
  102. ReturnType: &ast.TypeName{Name: "boolean"},
  103. },
  104. {
  105. Name: "_ltree_r_isparent",
  106. Args: []*catalog.Argument{
  107. {
  108. Type: &ast.TypeName{Name: "ltree"},
  109. },
  110. {
  111. Type: &ast.TypeName{Name: "ltree[]"},
  112. },
  113. },
  114. ReturnType: &ast.TypeName{Name: "boolean"},
  115. },
  116. {
  117. Name: "_ltree_r_risparent",
  118. Args: []*catalog.Argument{
  119. {
  120. Type: &ast.TypeName{Name: "ltree"},
  121. },
  122. {
  123. Type: &ast.TypeName{Name: "ltree[]"},
  124. },
  125. },
  126. ReturnType: &ast.TypeName{Name: "boolean"},
  127. },
  128. {
  129. Name: "_ltree_risparent",
  130. Args: []*catalog.Argument{
  131. {
  132. Type: &ast.TypeName{Name: "ltree[]"},
  133. },
  134. {
  135. Type: &ast.TypeName{Name: "ltree"},
  136. },
  137. },
  138. ReturnType: &ast.TypeName{Name: "boolean"},
  139. },
  140. {
  141. Name: "_ltxtq_exec",
  142. Args: []*catalog.Argument{
  143. {
  144. Type: &ast.TypeName{Name: "ltree[]"},
  145. },
  146. {
  147. Type: &ast.TypeName{Name: "ltxtquery"},
  148. },
  149. },
  150. ReturnType: &ast.TypeName{Name: "boolean"},
  151. },
  152. {
  153. Name: "_ltxtq_extract_exec",
  154. Args: []*catalog.Argument{
  155. {
  156. Type: &ast.TypeName{Name: "ltree[]"},
  157. },
  158. {
  159. Type: &ast.TypeName{Name: "ltxtquery"},
  160. },
  161. },
  162. ReturnType: &ast.TypeName{Name: "ltree"},
  163. },
  164. {
  165. Name: "_ltxtq_rexec",
  166. Args: []*catalog.Argument{
  167. {
  168. Type: &ast.TypeName{Name: "ltxtquery"},
  169. },
  170. {
  171. Type: &ast.TypeName{Name: "ltree[]"},
  172. },
  173. },
  174. ReturnType: &ast.TypeName{Name: "boolean"},
  175. },
  176. {
  177. Name: "index",
  178. Args: []*catalog.Argument{
  179. {
  180. Type: &ast.TypeName{Name: "ltree"},
  181. },
  182. {
  183. Type: &ast.TypeName{Name: "ltree"},
  184. },
  185. },
  186. ReturnType: &ast.TypeName{Name: "integer"},
  187. },
  188. {
  189. Name: "index",
  190. Args: []*catalog.Argument{
  191. {
  192. Type: &ast.TypeName{Name: "ltree"},
  193. },
  194. {
  195. Type: &ast.TypeName{Name: "ltree"},
  196. },
  197. {
  198. Type: &ast.TypeName{Name: "integer"},
  199. },
  200. },
  201. ReturnType: &ast.TypeName{Name: "integer"},
  202. },
  203. {
  204. Name: "lca",
  205. Args: []*catalog.Argument{
  206. {
  207. Type: &ast.TypeName{Name: "ltree"},
  208. },
  209. {
  210. Type: &ast.TypeName{Name: "ltree"},
  211. },
  212. },
  213. ReturnType: &ast.TypeName{Name: "ltree"},
  214. },
  215. {
  216. Name: "lca",
  217. Args: []*catalog.Argument{
  218. {
  219. Type: &ast.TypeName{Name: "ltree"},
  220. },
  221. {
  222. Type: &ast.TypeName{Name: "ltree"},
  223. },
  224. {
  225. Type: &ast.TypeName{Name: "ltree"},
  226. },
  227. },
  228. ReturnType: &ast.TypeName{Name: "ltree"},
  229. },
  230. {
  231. Name: "lca",
  232. Args: []*catalog.Argument{
  233. {
  234. Type: &ast.TypeName{Name: "ltree"},
  235. },
  236. {
  237. Type: &ast.TypeName{Name: "ltree"},
  238. },
  239. {
  240. Type: &ast.TypeName{Name: "ltree"},
  241. },
  242. {
  243. Type: &ast.TypeName{Name: "ltree"},
  244. },
  245. },
  246. ReturnType: &ast.TypeName{Name: "ltree"},
  247. },
  248. {
  249. Name: "lca",
  250. Args: []*catalog.Argument{
  251. {
  252. Type: &ast.TypeName{Name: "ltree"},
  253. },
  254. {
  255. Type: &ast.TypeName{Name: "ltree"},
  256. },
  257. {
  258. Type: &ast.TypeName{Name: "ltree"},
  259. },
  260. {
  261. Type: &ast.TypeName{Name: "ltree"},
  262. },
  263. {
  264. Type: &ast.TypeName{Name: "ltree"},
  265. },
  266. },
  267. ReturnType: &ast.TypeName{Name: "ltree"},
  268. },
  269. {
  270. Name: "lca",
  271. Args: []*catalog.Argument{
  272. {
  273. Type: &ast.TypeName{Name: "ltree"},
  274. },
  275. {
  276. Type: &ast.TypeName{Name: "ltree"},
  277. },
  278. {
  279. Type: &ast.TypeName{Name: "ltree"},
  280. },
  281. {
  282. Type: &ast.TypeName{Name: "ltree"},
  283. },
  284. {
  285. Type: &ast.TypeName{Name: "ltree"},
  286. },
  287. {
  288. Type: &ast.TypeName{Name: "ltree"},
  289. },
  290. },
  291. ReturnType: &ast.TypeName{Name: "ltree"},
  292. },
  293. {
  294. Name: "lca",
  295. Args: []*catalog.Argument{
  296. {
  297. Type: &ast.TypeName{Name: "ltree"},
  298. },
  299. {
  300. Type: &ast.TypeName{Name: "ltree"},
  301. },
  302. {
  303. Type: &ast.TypeName{Name: "ltree"},
  304. },
  305. {
  306. Type: &ast.TypeName{Name: "ltree"},
  307. },
  308. {
  309. Type: &ast.TypeName{Name: "ltree"},
  310. },
  311. {
  312. Type: &ast.TypeName{Name: "ltree"},
  313. },
  314. {
  315. Type: &ast.TypeName{Name: "ltree"},
  316. },
  317. },
  318. ReturnType: &ast.TypeName{Name: "ltree"},
  319. },
  320. {
  321. Name: "lca",
  322. Args: []*catalog.Argument{
  323. {
  324. Type: &ast.TypeName{Name: "ltree"},
  325. },
  326. {
  327. Type: &ast.TypeName{Name: "ltree"},
  328. },
  329. {
  330. Type: &ast.TypeName{Name: "ltree"},
  331. },
  332. {
  333. Type: &ast.TypeName{Name: "ltree"},
  334. },
  335. {
  336. Type: &ast.TypeName{Name: "ltree"},
  337. },
  338. {
  339. Type: &ast.TypeName{Name: "ltree"},
  340. },
  341. {
  342. Type: &ast.TypeName{Name: "ltree"},
  343. },
  344. {
  345. Type: &ast.TypeName{Name: "ltree"},
  346. },
  347. },
  348. ReturnType: &ast.TypeName{Name: "ltree"},
  349. },
  350. {
  351. Name: "lca",
  352. Args: []*catalog.Argument{
  353. {
  354. Type: &ast.TypeName{Name: "ltree[]"},
  355. },
  356. },
  357. ReturnType: &ast.TypeName{Name: "ltree"},
  358. },
  359. {
  360. Name: "lquery_in",
  361. Args: []*catalog.Argument{
  362. {
  363. Type: &ast.TypeName{Name: "cstring"},
  364. },
  365. },
  366. ReturnType: &ast.TypeName{Name: "lquery"},
  367. },
  368. {
  369. Name: "lquery_out",
  370. Args: []*catalog.Argument{
  371. {
  372. Type: &ast.TypeName{Name: "lquery"},
  373. },
  374. },
  375. ReturnType: &ast.TypeName{Name: "cstring"},
  376. },
  377. {
  378. Name: "lquery_send",
  379. Args: []*catalog.Argument{
  380. {
  381. Type: &ast.TypeName{Name: "lquery"},
  382. },
  383. },
  384. ReturnType: &ast.TypeName{Name: "bytea"},
  385. },
  386. {
  387. Name: "lt_q_regex",
  388. Args: []*catalog.Argument{
  389. {
  390. Type: &ast.TypeName{Name: "ltree"},
  391. },
  392. {
  393. Type: &ast.TypeName{Name: "lquery[]"},
  394. },
  395. },
  396. ReturnType: &ast.TypeName{Name: "boolean"},
  397. },
  398. {
  399. Name: "lt_q_rregex",
  400. Args: []*catalog.Argument{
  401. {
  402. Type: &ast.TypeName{Name: "lquery[]"},
  403. },
  404. {
  405. Type: &ast.TypeName{Name: "ltree"},
  406. },
  407. },
  408. ReturnType: &ast.TypeName{Name: "boolean"},
  409. },
  410. {
  411. Name: "ltq_regex",
  412. Args: []*catalog.Argument{
  413. {
  414. Type: &ast.TypeName{Name: "ltree"},
  415. },
  416. {
  417. Type: &ast.TypeName{Name: "lquery"},
  418. },
  419. },
  420. ReturnType: &ast.TypeName{Name: "boolean"},
  421. },
  422. {
  423. Name: "ltq_rregex",
  424. Args: []*catalog.Argument{
  425. {
  426. Type: &ast.TypeName{Name: "lquery"},
  427. },
  428. {
  429. Type: &ast.TypeName{Name: "ltree"},
  430. },
  431. },
  432. ReturnType: &ast.TypeName{Name: "boolean"},
  433. },
  434. {
  435. Name: "ltree2text",
  436. Args: []*catalog.Argument{
  437. {
  438. Type: &ast.TypeName{Name: "ltree"},
  439. },
  440. },
  441. ReturnType: &ast.TypeName{Name: "text"},
  442. },
  443. {
  444. Name: "ltree_addltree",
  445. Args: []*catalog.Argument{
  446. {
  447. Type: &ast.TypeName{Name: "ltree"},
  448. },
  449. {
  450. Type: &ast.TypeName{Name: "ltree"},
  451. },
  452. },
  453. ReturnType: &ast.TypeName{Name: "ltree"},
  454. },
  455. {
  456. Name: "ltree_addtext",
  457. Args: []*catalog.Argument{
  458. {
  459. Type: &ast.TypeName{Name: "ltree"},
  460. },
  461. {
  462. Type: &ast.TypeName{Name: "text"},
  463. },
  464. },
  465. ReturnType: &ast.TypeName{Name: "ltree"},
  466. },
  467. {
  468. Name: "ltree_cmp",
  469. Args: []*catalog.Argument{
  470. {
  471. Type: &ast.TypeName{Name: "ltree"},
  472. },
  473. {
  474. Type: &ast.TypeName{Name: "ltree"},
  475. },
  476. },
  477. ReturnType: &ast.TypeName{Name: "integer"},
  478. },
  479. {
  480. Name: "ltree_eq",
  481. Args: []*catalog.Argument{
  482. {
  483. Type: &ast.TypeName{Name: "ltree"},
  484. },
  485. {
  486. Type: &ast.TypeName{Name: "ltree"},
  487. },
  488. },
  489. ReturnType: &ast.TypeName{Name: "boolean"},
  490. },
  491. {
  492. Name: "ltree_ge",
  493. Args: []*catalog.Argument{
  494. {
  495. Type: &ast.TypeName{Name: "ltree"},
  496. },
  497. {
  498. Type: &ast.TypeName{Name: "ltree"},
  499. },
  500. },
  501. ReturnType: &ast.TypeName{Name: "boolean"},
  502. },
  503. {
  504. Name: "ltree_gist_in",
  505. Args: []*catalog.Argument{
  506. {
  507. Type: &ast.TypeName{Name: "cstring"},
  508. },
  509. },
  510. ReturnType: &ast.TypeName{Name: "ltree_gist"},
  511. },
  512. {
  513. Name: "ltree_gist_out",
  514. Args: []*catalog.Argument{
  515. {
  516. Type: &ast.TypeName{Name: "ltree_gist"},
  517. },
  518. },
  519. ReturnType: &ast.TypeName{Name: "cstring"},
  520. },
  521. {
  522. Name: "ltree_gt",
  523. Args: []*catalog.Argument{
  524. {
  525. Type: &ast.TypeName{Name: "ltree"},
  526. },
  527. {
  528. Type: &ast.TypeName{Name: "ltree"},
  529. },
  530. },
  531. ReturnType: &ast.TypeName{Name: "boolean"},
  532. },
  533. {
  534. Name: "ltree_in",
  535. Args: []*catalog.Argument{
  536. {
  537. Type: &ast.TypeName{Name: "cstring"},
  538. },
  539. },
  540. ReturnType: &ast.TypeName{Name: "ltree"},
  541. },
  542. {
  543. Name: "ltree_isparent",
  544. Args: []*catalog.Argument{
  545. {
  546. Type: &ast.TypeName{Name: "ltree"},
  547. },
  548. {
  549. Type: &ast.TypeName{Name: "ltree"},
  550. },
  551. },
  552. ReturnType: &ast.TypeName{Name: "boolean"},
  553. },
  554. {
  555. Name: "ltree_le",
  556. Args: []*catalog.Argument{
  557. {
  558. Type: &ast.TypeName{Name: "ltree"},
  559. },
  560. {
  561. Type: &ast.TypeName{Name: "ltree"},
  562. },
  563. },
  564. ReturnType: &ast.TypeName{Name: "boolean"},
  565. },
  566. {
  567. Name: "ltree_lt",
  568. Args: []*catalog.Argument{
  569. {
  570. Type: &ast.TypeName{Name: "ltree"},
  571. },
  572. {
  573. Type: &ast.TypeName{Name: "ltree"},
  574. },
  575. },
  576. ReturnType: &ast.TypeName{Name: "boolean"},
  577. },
  578. {
  579. Name: "ltree_ne",
  580. Args: []*catalog.Argument{
  581. {
  582. Type: &ast.TypeName{Name: "ltree"},
  583. },
  584. {
  585. Type: &ast.TypeName{Name: "ltree"},
  586. },
  587. },
  588. ReturnType: &ast.TypeName{Name: "boolean"},
  589. },
  590. {
  591. Name: "ltree_out",
  592. Args: []*catalog.Argument{
  593. {
  594. Type: &ast.TypeName{Name: "ltree"},
  595. },
  596. },
  597. ReturnType: &ast.TypeName{Name: "cstring"},
  598. },
  599. {
  600. Name: "ltree_risparent",
  601. Args: []*catalog.Argument{
  602. {
  603. Type: &ast.TypeName{Name: "ltree"},
  604. },
  605. {
  606. Type: &ast.TypeName{Name: "ltree"},
  607. },
  608. },
  609. ReturnType: &ast.TypeName{Name: "boolean"},
  610. },
  611. {
  612. Name: "ltree_send",
  613. Args: []*catalog.Argument{
  614. {
  615. Type: &ast.TypeName{Name: "ltree"},
  616. },
  617. },
  618. ReturnType: &ast.TypeName{Name: "bytea"},
  619. },
  620. {
  621. Name: "ltree_textadd",
  622. Args: []*catalog.Argument{
  623. {
  624. Type: &ast.TypeName{Name: "text"},
  625. },
  626. {
  627. Type: &ast.TypeName{Name: "ltree"},
  628. },
  629. },
  630. ReturnType: &ast.TypeName{Name: "ltree"},
  631. },
  632. {
  633. Name: "ltxtq_exec",
  634. Args: []*catalog.Argument{
  635. {
  636. Type: &ast.TypeName{Name: "ltree"},
  637. },
  638. {
  639. Type: &ast.TypeName{Name: "ltxtquery"},
  640. },
  641. },
  642. ReturnType: &ast.TypeName{Name: "boolean"},
  643. },
  644. {
  645. Name: "ltxtq_in",
  646. Args: []*catalog.Argument{
  647. {
  648. Type: &ast.TypeName{Name: "cstring"},
  649. },
  650. },
  651. ReturnType: &ast.TypeName{Name: "ltxtquery"},
  652. },
  653. {
  654. Name: "ltxtq_out",
  655. Args: []*catalog.Argument{
  656. {
  657. Type: &ast.TypeName{Name: "ltxtquery"},
  658. },
  659. },
  660. ReturnType: &ast.TypeName{Name: "cstring"},
  661. },
  662. {
  663. Name: "ltxtq_rexec",
  664. Args: []*catalog.Argument{
  665. {
  666. Type: &ast.TypeName{Name: "ltxtquery"},
  667. },
  668. {
  669. Type: &ast.TypeName{Name: "ltree"},
  670. },
  671. },
  672. ReturnType: &ast.TypeName{Name: "boolean"},
  673. },
  674. {
  675. Name: "ltxtq_send",
  676. Args: []*catalog.Argument{
  677. {
  678. Type: &ast.TypeName{Name: "ltxtquery"},
  679. },
  680. },
  681. ReturnType: &ast.TypeName{Name: "bytea"},
  682. },
  683. {
  684. Name: "nlevel",
  685. Args: []*catalog.Argument{
  686. {
  687. Type: &ast.TypeName{Name: "ltree"},
  688. },
  689. },
  690. ReturnType: &ast.TypeName{Name: "integer"},
  691. },
  692. {
  693. Name: "subltree",
  694. Args: []*catalog.Argument{
  695. {
  696. Type: &ast.TypeName{Name: "ltree"},
  697. },
  698. {
  699. Type: &ast.TypeName{Name: "integer"},
  700. },
  701. {
  702. Type: &ast.TypeName{Name: "integer"},
  703. },
  704. },
  705. ReturnType: &ast.TypeName{Name: "ltree"},
  706. },
  707. {
  708. Name: "subpath",
  709. Args: []*catalog.Argument{
  710. {
  711. Type: &ast.TypeName{Name: "ltree"},
  712. },
  713. {
  714. Type: &ast.TypeName{Name: "integer"},
  715. },
  716. },
  717. ReturnType: &ast.TypeName{Name: "ltree"},
  718. },
  719. {
  720. Name: "subpath",
  721. Args: []*catalog.Argument{
  722. {
  723. Type: &ast.TypeName{Name: "ltree"},
  724. },
  725. {
  726. Type: &ast.TypeName{Name: "integer"},
  727. },
  728. {
  729. Type: &ast.TypeName{Name: "integer"},
  730. },
  731. },
  732. ReturnType: &ast.TypeName{Name: "ltree"},
  733. },
  734. {
  735. Name: "text2ltree",
  736. Args: []*catalog.Argument{
  737. {
  738. Type: &ast.TypeName{Name: "text"},
  739. },
  740. },
  741. ReturnType: &ast.TypeName{Name: "ltree"},
  742. },
  743. }
  744. func Ltree() *catalog.Schema {
  745. s := &catalog.Schema{Name: "pg_catalog"}
  746. s.Funcs = funcsLtree
  747. return s
  748. }