1
0

dblink.go 8.9 KB

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