JoinBuilder.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. const QueryBuilderOperationSupport = require('./QueryBuilderOperationSupport');
  2. const KnexOperation = require('./operations/KnexOperation');
  3. class JoinBuilder extends QueryBuilderOperationSupport {
  4. using() {
  5. return this.addOperation(new KnexOperation('using'), arguments);
  6. }
  7. on() {
  8. return this.addOperation(new KnexOperation('on'), arguments);
  9. }
  10. orOn() {
  11. return this.addOperation(new KnexOperation('orOn'), arguments);
  12. }
  13. onBetween() {
  14. return this.addOperation(new KnexOperation('onBetween'), arguments);
  15. }
  16. onNotBetween() {
  17. return this.addOperation(new KnexOperation('onNotBetween'), arguments);
  18. }
  19. orOnBetween() {
  20. return this.addOperation(new KnexOperation('orOnBetween'), arguments);
  21. }
  22. orOnNotBetween() {
  23. return this.addOperation(new KnexOperation('orOnNotBetween'), arguments);
  24. }
  25. onIn() {
  26. return this.addOperation(new KnexOperation('onIn'), arguments);
  27. }
  28. onNotIn() {
  29. return this.addOperation(new KnexOperation('onNotIn'), arguments);
  30. }
  31. orOnIn() {
  32. return this.addOperation(new KnexOperation('orOnIn'), arguments);
  33. }
  34. orOnNotIn() {
  35. return this.addOperation(new KnexOperation('orOnNotIn'), arguments);
  36. }
  37. onNull() {
  38. return this.addOperation(new KnexOperation('onNull'), arguments);
  39. }
  40. orOnNull() {
  41. return this.addOperation(new KnexOperation('orOnNull'), arguments);
  42. }
  43. onNotNull() {
  44. return this.addOperation(new KnexOperation('onNotNull'), arguments);
  45. }
  46. orOnNotNull() {
  47. return this.addOperation(new KnexOperation('orOnNotNull'), arguments);
  48. }
  49. onExists() {
  50. return this.addOperation(new KnexOperation('onExists'), arguments);
  51. }
  52. orOnExists() {
  53. return this.addOperation(new KnexOperation('orOnExists'), arguments);
  54. }
  55. onNotExists() {
  56. return this.addOperation(new KnexOperation('onNotExists'), arguments);
  57. }
  58. orOnNotExists() {
  59. return this.addOperation(new KnexOperation('orOnNotExists'), arguments);
  60. }
  61. type() {
  62. return this.addOperation(new KnexOperation('type'), arguments);
  63. }
  64. andOn() {
  65. return this.addOperation(new KnexOperation('andOn'), arguments);
  66. }
  67. andOnIn() {
  68. return this.addOperation(new KnexOperation('andOnIn'), arguments);
  69. }
  70. andOnNotIn() {
  71. return this.addOperation(new KnexOperation('andOnNotIn'), arguments);
  72. }
  73. andOnNull() {
  74. return this.addOperation(new KnexOperation('andOnNull'), arguments);
  75. }
  76. andOnNotNull() {
  77. return this.addOperation(new KnexOperation('andOnNotNull'), arguments);
  78. }
  79. andOnExists() {
  80. return this.addOperation(new KnexOperation('andOnExists'), arguments);
  81. }
  82. andOnNotExists() {
  83. return this.addOperation(new KnexOperation('andOnNotExists'), arguments);
  84. }
  85. andOnBetween() {
  86. return this.addOperation(new KnexOperation('andOnBetween'), arguments);
  87. }
  88. andOnNotBetween() {
  89. return this.addOperation(new KnexOperation('andOnNotBetween'), arguments);
  90. }
  91. }
  92. module.exports = JoinBuilder;