pg-manipulator 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/README.md +2 -0
  2. package/bin/dump/index.cjs +8 -0
  3. package/bin/update/index.cjs +9 -0
  4. package/dist/@types/bettings/betting_ball_scores_fields.d.ts +6 -0
  5. package/dist/@types/bettings/betting_ball_scores_fields.js +2 -0
  6. package/dist/@types/bettings/betting_ball_scores_order.d.ts +6 -0
  7. package/dist/@types/bettings/betting_ball_scores_order.js +2 -0
  8. package/dist/@types/bettings/betting_ball_scores_select.d.ts +10 -0
  9. package/dist/@types/bettings/betting_ball_scores_select.js +2 -0
  10. package/dist/@types/bettings/betting_ball_scores_update.d.ts +8 -0
  11. package/dist/@types/bettings/betting_ball_scores_update.js +2 -0
  12. package/dist/@types/bettings/betting_ball_scores_where.d.ts +7 -0
  13. package/dist/@types/bettings/betting_ball_scores_where.js +2 -0
  14. package/dist/@types/bettings/betting_balls_fields.d.ts +8 -0
  15. package/dist/@types/bettings/betting_balls_fields.js +2 -0
  16. package/dist/@types/bettings/betting_balls_order.d.ts +8 -0
  17. package/dist/@types/bettings/betting_balls_order.js +2 -0
  18. package/dist/@types/bettings/betting_balls_select.d.ts +12 -0
  19. package/dist/@types/bettings/betting_balls_select.js +2 -0
  20. package/dist/@types/bettings/betting_balls_update.d.ts +10 -0
  21. package/dist/@types/bettings/betting_balls_update.js +2 -0
  22. package/dist/@types/bettings/betting_balls_where.d.ts +9 -0
  23. package/dist/@types/bettings/betting_balls_where.js +2 -0
  24. package/dist/@types/bettings/betting_cards_fields.d.ts +7 -0
  25. package/dist/@types/bettings/betting_cards_fields.js +2 -0
  26. package/dist/@types/bettings/betting_cards_order.d.ts +7 -0
  27. package/dist/@types/bettings/betting_cards_order.js +2 -0
  28. package/dist/@types/bettings/betting_cards_select.d.ts +11 -0
  29. package/dist/@types/bettings/betting_cards_select.js +2 -0
  30. package/dist/@types/bettings/betting_cards_update.d.ts +9 -0
  31. package/dist/@types/bettings/betting_cards_update.js +2 -0
  32. package/dist/@types/bettings/betting_cards_where.d.ts +8 -0
  33. package/dist/@types/bettings/betting_cards_where.js +2 -0
  34. package/dist/@types/bettings/card_options_fields.d.ts +11 -0
  35. package/dist/@types/bettings/card_options_fields.js +2 -0
  36. package/dist/@types/bettings/card_options_order.d.ts +11 -0
  37. package/dist/@types/bettings/card_options_order.js +2 -0
  38. package/dist/@types/bettings/card_options_select.d.ts +15 -0
  39. package/dist/@types/bettings/card_options_select.js +2 -0
  40. package/dist/@types/bettings/card_options_update.d.ts +13 -0
  41. package/dist/@types/bettings/card_options_update.js +2 -0
  42. package/dist/@types/bettings/card_options_where.d.ts +12 -0
  43. package/dist/@types/bettings/card_options_where.js +2 -0
  44. package/dist/@types/bettings/cards_fields.d.ts +7 -0
  45. package/dist/@types/bettings/cards_fields.js +2 -0
  46. package/dist/@types/bettings/cards_order.d.ts +7 -0
  47. package/dist/@types/bettings/cards_order.js +2 -0
  48. package/dist/@types/bettings/cards_select.d.ts +11 -0
  49. package/dist/@types/bettings/cards_select.js +2 -0
  50. package/dist/@types/bettings/cards_update.d.ts +9 -0
  51. package/dist/@types/bettings/cards_update.js +2 -0
  52. package/dist/@types/bettings/cards_where.d.ts +8 -0
  53. package/dist/@types/bettings/cards_where.js +2 -0
  54. package/dist/@types/bettings/championship_teams_fields.d.ts +7 -0
  55. package/dist/@types/bettings/championship_teams_fields.js +2 -0
  56. package/dist/@types/bettings/championship_teams_order.d.ts +7 -0
  57. package/dist/@types/bettings/championship_teams_order.js +2 -0
  58. package/dist/@types/bettings/championship_teams_select.d.ts +11 -0
  59. package/dist/@types/bettings/championship_teams_select.js +2 -0
  60. package/dist/@types/bettings/championship_teams_update.d.ts +9 -0
  61. package/dist/@types/bettings/championship_teams_update.js +2 -0
  62. package/dist/@types/bettings/championship_teams_where.d.ts +8 -0
  63. package/dist/@types/bettings/championship_teams_where.js +2 -0
  64. package/dist/@types/bettings/championships_fields.d.ts +9 -0
  65. package/dist/@types/bettings/championships_fields.js +2 -0
  66. package/dist/@types/bettings/championships_order.d.ts +9 -0
  67. package/dist/@types/bettings/championships_order.js +2 -0
  68. package/dist/@types/bettings/championships_select.d.ts +13 -0
  69. package/dist/@types/bettings/championships_select.js +2 -0
  70. package/dist/@types/bettings/championships_update.d.ts +11 -0
  71. package/dist/@types/bettings/championships_update.js +2 -0
  72. package/dist/@types/bettings/championships_where.d.ts +10 -0
  73. package/dist/@types/bettings/championships_where.js +2 -0
  74. package/dist/@types/bettings/match_teams_fields.d.ts +5 -0
  75. package/dist/@types/bettings/match_teams_fields.js +2 -0
  76. package/dist/@types/bettings/match_teams_order.d.ts +5 -0
  77. package/dist/@types/bettings/match_teams_order.js +2 -0
  78. package/dist/@types/bettings/match_teams_select.d.ts +9 -0
  79. package/dist/@types/bettings/match_teams_select.js +2 -0
  80. package/dist/@types/bettings/match_teams_update.d.ts +7 -0
  81. package/dist/@types/bettings/match_teams_update.js +2 -0
  82. package/dist/@types/bettings/match_teams_where.d.ts +6 -0
  83. package/dist/@types/bettings/match_teams_where.js +2 -0
  84. package/dist/@types/bettings/matches_fields.d.ts +5 -0
  85. package/dist/@types/bettings/matches_fields.js +2 -0
  86. package/dist/@types/bettings/matches_order.d.ts +5 -0
  87. package/dist/@types/bettings/matches_order.js +2 -0
  88. package/dist/@types/bettings/matches_select.d.ts +9 -0
  89. package/dist/@types/bettings/matches_select.js +2 -0
  90. package/dist/@types/bettings/matches_update.d.ts +7 -0
  91. package/dist/@types/bettings/matches_update.js +2 -0
  92. package/dist/@types/bettings/matches_where.d.ts +6 -0
  93. package/dist/@types/bettings/matches_where.js +2 -0
  94. package/dist/@types/bettings/teams_fields.d.ts +7 -0
  95. package/dist/@types/bettings/teams_fields.js +2 -0
  96. package/dist/@types/bettings/teams_order.d.ts +7 -0
  97. package/dist/@types/bettings/teams_order.js +2 -0
  98. package/dist/@types/bettings/teams_select.d.ts +11 -0
  99. package/dist/@types/bettings/teams_select.js +2 -0
  100. package/dist/@types/bettings/teams_update.d.ts +9 -0
  101. package/dist/@types/bettings/teams_update.js +2 -0
  102. package/dist/@types/bettings/teams_where.d.ts +8 -0
  103. package/dist/@types/bettings/teams_where.js +2 -0
  104. package/dist/@types/index.d.ts +40 -0
  105. package/dist/@types/index.js +2 -0
  106. package/dist/@types/users/transaction_historics_fields.d.ts +6 -0
  107. package/dist/@types/users/transaction_historics_fields.js +2 -0
  108. package/dist/@types/users/transaction_historics_order.d.ts +6 -0
  109. package/dist/@types/users/transaction_historics_order.js +2 -0
  110. package/dist/@types/users/transaction_historics_select.d.ts +10 -0
  111. package/dist/@types/users/transaction_historics_select.js +2 -0
  112. package/dist/@types/users/transaction_historics_update.d.ts +8 -0
  113. package/dist/@types/users/transaction_historics_update.js +2 -0
  114. package/dist/@types/users/transaction_historics_where.d.ts +7 -0
  115. package/dist/@types/users/transaction_historics_where.js +2 -0
  116. package/dist/@types/users/transactions_fields.d.ts +11 -0
  117. package/dist/@types/users/transactions_fields.js +2 -0
  118. package/dist/@types/users/transactions_order.d.ts +11 -0
  119. package/dist/@types/users/transactions_order.js +2 -0
  120. package/dist/@types/users/transactions_select.d.ts +15 -0
  121. package/dist/@types/users/transactions_select.js +2 -0
  122. package/dist/@types/users/transactions_update.d.ts +13 -0
  123. package/dist/@types/users/transactions_update.js +2 -0
  124. package/dist/@types/users/transactions_where.d.ts +12 -0
  125. package/dist/@types/users/transactions_where.js +2 -0
  126. package/dist/@types/users/users_fields.d.ts +8 -0
  127. package/dist/@types/users/users_fields.js +2 -0
  128. package/dist/@types/users/users_order.d.ts +8 -0
  129. package/dist/@types/users/users_order.js +2 -0
  130. package/dist/@types/users/users_select.d.ts +12 -0
  131. package/dist/@types/users/users_select.js +2 -0
  132. package/dist/@types/users/users_update.d.ts +10 -0
  133. package/dist/@types/users/users_update.js +2 -0
  134. package/dist/@types/users/users_where.d.ts +9 -0
  135. package/dist/@types/users/users_where.js +2 -0
  136. package/dist/base/index.d.ts +8 -0
  137. package/dist/base/index.js +50 -0
  138. package/dist/class/bettings/betting_ball_scores.d.ts +13 -0
  139. package/dist/class/bettings/betting_ball_scores.js +58 -0
  140. package/dist/class/bettings/betting_balls.d.ts +13 -0
  141. package/dist/class/bettings/betting_balls.js +58 -0
  142. package/dist/class/bettings/betting_cards.d.ts +13 -0
  143. package/dist/class/bettings/betting_cards.js +58 -0
  144. package/dist/class/bettings/card_options.d.ts +13 -0
  145. package/dist/class/bettings/card_options.js +58 -0
  146. package/dist/class/bettings/cards.d.ts +13 -0
  147. package/dist/class/bettings/cards.js +58 -0
  148. package/dist/class/bettings/championship_teams.d.ts +13 -0
  149. package/dist/class/bettings/championship_teams.js +58 -0
  150. package/dist/class/bettings/championships.d.ts +13 -0
  151. package/dist/class/bettings/championships.js +58 -0
  152. package/dist/class/bettings/index.d.ts +27 -0
  153. package/dist/class/bettings/index.js +47 -0
  154. package/dist/class/bettings/match_teams.d.ts +13 -0
  155. package/dist/class/bettings/match_teams.js +58 -0
  156. package/dist/class/bettings/matches.d.ts +13 -0
  157. package/dist/class/bettings/matches.js +58 -0
  158. package/dist/class/bettings/teams.d.ts +13 -0
  159. package/dist/class/bettings/teams.js +58 -0
  160. package/dist/class/users/index.d.ts +13 -0
  161. package/dist/class/users/index.js +33 -0
  162. package/dist/class/users/transaction_historics.d.ts +13 -0
  163. package/dist/class/users/transaction_historics.js +58 -0
  164. package/dist/class/users/transactions.d.ts +13 -0
  165. package/dist/class/users/transactions.js +58 -0
  166. package/dist/class/users/users.d.ts +13 -0
  167. package/dist/class/users/users.js +58 -0
  168. package/dist/database/client/index.d.ts +9 -0
  169. package/dist/database/client/index.js +61 -0
  170. package/dist/database/index.d.ts +10 -0
  171. package/dist/database/index.js +80 -0
  172. package/dist/generator/index.d.ts +4 -0
  173. package/dist/generator/index.js +144 -0
  174. package/dist/generator/model/database.d.ts +7 -0
  175. package/dist/generator/model/database.js +71 -0
  176. package/dist/generator/model/table.d.ts +11 -0
  177. package/dist/generator/model/table.js +32 -0
  178. package/dist/generator/template/base.d.ts +6 -0
  179. package/dist/generator/template/base.js +16 -0
  180. package/dist/generator/template/database_store.d.ts +9 -0
  181. package/dist/generator/template/database_store.js +24 -0
  182. package/dist/generator/template/entity.d.ts +7 -0
  183. package/dist/generator/template/entity.js +43 -0
  184. package/dist/generator/template/entity_store.d.ts +10 -0
  185. package/dist/generator/template/entity_store.js +32 -0
  186. package/dist/generator/template/fields.d.ts +7 -0
  187. package/dist/generator/template/fields.js +21 -0
  188. package/dist/generator/template/order.d.ts +7 -0
  189. package/dist/generator/template/order.js +20 -0
  190. package/dist/generator/template/schema.d.ts +7 -0
  191. package/dist/generator/template/schema.js +16 -0
  192. package/dist/generator/template/schema_store.d.ts +10 -0
  193. package/dist/generator/template/schema_store.js +25 -0
  194. package/dist/generator/template/select.d.ts +8 -0
  195. package/dist/generator/template/select.js +40 -0
  196. package/dist/generator/template/update.d.ts +8 -0
  197. package/dist/generator/template/update.js +38 -0
  198. package/dist/generator/template/where.d.ts +8 -0
  199. package/dist/generator/template/where.js +37 -0
  200. package/dist/index.d.ts +4 -0
  201. package/dist/index.js +12 -0
  202. package/dist/mapping/bettings/betting_ball_scores.d.ts +27 -0
  203. package/dist/mapping/bettings/betting_ball_scores.js +53 -0
  204. package/dist/mapping/bettings/betting_balls.d.ts +37 -0
  205. package/dist/mapping/bettings/betting_balls.js +75 -0
  206. package/dist/mapping/bettings/betting_cards.d.ts +27 -0
  207. package/dist/mapping/bettings/betting_cards.js +64 -0
  208. package/dist/mapping/bettings/card_options.d.ts +37 -0
  209. package/dist/mapping/bettings/card_options.js +108 -0
  210. package/dist/mapping/bettings/cards.d.ts +37 -0
  211. package/dist/mapping/bettings/cards.js +64 -0
  212. package/dist/mapping/bettings/championship_teams.d.ts +37 -0
  213. package/dist/mapping/bettings/championship_teams.js +64 -0
  214. package/dist/mapping/bettings/championships.d.ts +37 -0
  215. package/dist/mapping/bettings/championships.js +86 -0
  216. package/dist/mapping/bettings/index.d.ts +323 -0
  217. package/dist/mapping/bettings/index.js +27 -0
  218. package/dist/mapping/bettings/match_teams.d.ts +27 -0
  219. package/dist/mapping/bettings/match_teams.js +42 -0
  220. package/dist/mapping/bettings/matches.d.ts +27 -0
  221. package/dist/mapping/bettings/matches.js +42 -0
  222. package/dist/mapping/bettings/teams.d.ts +37 -0
  223. package/dist/mapping/bettings/teams.js +64 -0
  224. package/dist/mapping/users/index.d.ts +111 -0
  225. package/dist/mapping/users/index.js +13 -0
  226. package/dist/mapping/users/transaction_historics.d.ts +37 -0
  227. package/dist/mapping/users/transaction_historics.js +53 -0
  228. package/dist/mapping/users/transactions.d.ts +37 -0
  229. package/dist/mapping/users/transactions.js +108 -0
  230. package/dist/mapping/users/users.d.ts +37 -0
  231. package/dist/mapping/users/users.js +75 -0
  232. package/dist/middleware/create/index.d.ts +11 -0
  233. package/dist/middleware/create/index.js +96 -0
  234. package/dist/middleware/delete/index.d.ts +10 -0
  235. package/dist/middleware/delete/index.js +35 -0
  236. package/dist/middleware/index.d.ts +10 -0
  237. package/dist/middleware/index.js +50 -0
  238. package/dist/middleware/select/index.d.ts +11 -0
  239. package/dist/middleware/select/index.js +84 -0
  240. package/dist/middleware/update/index.d.ts +10 -0
  241. package/dist/middleware/update/index.js +97 -0
  242. package/dist/middleware/where/index.d.ts +1 -0
  243. package/dist/middleware/where/index.js +216 -0
  244. package/dist/scripts/index.d.ts +4 -0
  245. package/dist/scripts/index.js +68 -0
  246. package/dist/utils/index.d.ts +7 -0
  247. package/dist/utils/index.js +58 -0
  248. package/package.json +40 -0
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { betting_cards_select } from '../../@types/bettings/betting_cards_select';
4
+ import { betting_cards_where } from '../../@types/bettings/betting_cards_where';
5
+ import { betting_cards_update } from '../../@types/bettings/betting_cards_update';
6
+ import { betting_cards_fields } from '../../@types/bettings/betting_cards_fields';
7
+ export default class betting_cards extends base {
8
+ static get(fields: betting_cards_select, transaction: PoolClient | undefined): Promise<betting_cards_fields>;
9
+ static get_all(fields: betting_cards_select, transaction: PoolClient | undefined): Promise<betting_cards_fields[]>;
10
+ static create(fields: betting_cards, transaction: PoolClient | undefined): Promise<betting_cards_fields>;
11
+ static update(fields: betting_cards_update, transaction: PoolClient | undefined): Promise<any>;
12
+ static delete(fields: betting_cards_where, transaction: PoolClient | undefined): Promise<any>;
13
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const base_1 = __importDefault(require("../../base"));
16
+ class betting_cards extends base_1.default {
17
+ static get(fields, transaction) {
18
+ const _super = Object.create(null, {
19
+ b_get: { get: () => super.b_get }
20
+ });
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return yield _super.b_get.call(this, 'bettings', fields, 'betting_cards', transaction);
23
+ });
24
+ }
25
+ static get_all(fields, transaction) {
26
+ const _super = Object.create(null, {
27
+ b_get_all: { get: () => super.b_get_all }
28
+ });
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ return yield _super.b_get_all.call(this, 'bettings', fields, 'betting_cards', transaction);
31
+ });
32
+ }
33
+ static create(fields, transaction) {
34
+ const _super = Object.create(null, {
35
+ b_create: { get: () => super.b_create }
36
+ });
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield _super.b_create.call(this, 'bettings', fields, 'betting_cards', transaction);
39
+ });
40
+ }
41
+ static update(fields, transaction) {
42
+ const _super = Object.create(null, {
43
+ b_update: { get: () => super.b_update }
44
+ });
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield _super.b_update.call(this, 'bettings', fields, 'betting_cards', transaction);
47
+ });
48
+ }
49
+ static delete(fields, transaction) {
50
+ const _super = Object.create(null, {
51
+ b_delete: { get: () => super.b_delete }
52
+ });
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return yield _super.b_delete.call(this, 'bettings', fields, 'betting_cards', transaction);
55
+ });
56
+ }
57
+ }
58
+ exports.default = betting_cards;
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { card_options_select } from '../../@types/bettings/card_options_select';
4
+ import { card_options_where } from '../../@types/bettings/card_options_where';
5
+ import { card_options_update } from '../../@types/bettings/card_options_update';
6
+ import { card_options_fields } from '../../@types/bettings/card_options_fields';
7
+ export default class card_options extends base {
8
+ static get(fields: card_options_select, transaction: PoolClient | undefined): Promise<card_options_fields>;
9
+ static get_all(fields: card_options_select, transaction: PoolClient | undefined): Promise<card_options_fields[]>;
10
+ static create(fields: card_options, transaction: PoolClient | undefined): Promise<card_options_fields>;
11
+ static update(fields: card_options_update, transaction: PoolClient | undefined): Promise<any>;
12
+ static delete(fields: card_options_where, transaction: PoolClient | undefined): Promise<any>;
13
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const base_1 = __importDefault(require("../../base"));
16
+ class card_options extends base_1.default {
17
+ static get(fields, transaction) {
18
+ const _super = Object.create(null, {
19
+ b_get: { get: () => super.b_get }
20
+ });
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return yield _super.b_get.call(this, 'bettings', fields, 'card_options', transaction);
23
+ });
24
+ }
25
+ static get_all(fields, transaction) {
26
+ const _super = Object.create(null, {
27
+ b_get_all: { get: () => super.b_get_all }
28
+ });
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ return yield _super.b_get_all.call(this, 'bettings', fields, 'card_options', transaction);
31
+ });
32
+ }
33
+ static create(fields, transaction) {
34
+ const _super = Object.create(null, {
35
+ b_create: { get: () => super.b_create }
36
+ });
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield _super.b_create.call(this, 'bettings', fields, 'card_options', transaction);
39
+ });
40
+ }
41
+ static update(fields, transaction) {
42
+ const _super = Object.create(null, {
43
+ b_update: { get: () => super.b_update }
44
+ });
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield _super.b_update.call(this, 'bettings', fields, 'card_options', transaction);
47
+ });
48
+ }
49
+ static delete(fields, transaction) {
50
+ const _super = Object.create(null, {
51
+ b_delete: { get: () => super.b_delete }
52
+ });
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return yield _super.b_delete.call(this, 'bettings', fields, 'card_options', transaction);
55
+ });
56
+ }
57
+ }
58
+ exports.default = card_options;
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { cards_select } from '../../@types/bettings/cards_select';
4
+ import { cards_where } from '../../@types/bettings/cards_where';
5
+ import { cards_update } from '../../@types/bettings/cards_update';
6
+ import { cards_fields } from '../../@types/bettings/cards_fields';
7
+ export default class cards extends base {
8
+ static get(fields: cards_select, transaction: PoolClient | undefined): Promise<cards_fields>;
9
+ static get_all(fields: cards_select, transaction: PoolClient | undefined): Promise<cards_fields[]>;
10
+ static create(fields: cards, transaction: PoolClient | undefined): Promise<cards_fields>;
11
+ static update(fields: cards_update, transaction: PoolClient | undefined): Promise<any>;
12
+ static delete(fields: cards_where, transaction: PoolClient | undefined): Promise<any>;
13
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const base_1 = __importDefault(require("../../base"));
16
+ class cards extends base_1.default {
17
+ static get(fields, transaction) {
18
+ const _super = Object.create(null, {
19
+ b_get: { get: () => super.b_get }
20
+ });
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return yield _super.b_get.call(this, 'bettings', fields, 'cards', transaction);
23
+ });
24
+ }
25
+ static get_all(fields, transaction) {
26
+ const _super = Object.create(null, {
27
+ b_get_all: { get: () => super.b_get_all }
28
+ });
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ return yield _super.b_get_all.call(this, 'bettings', fields, 'cards', transaction);
31
+ });
32
+ }
33
+ static create(fields, transaction) {
34
+ const _super = Object.create(null, {
35
+ b_create: { get: () => super.b_create }
36
+ });
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield _super.b_create.call(this, 'bettings', fields, 'cards', transaction);
39
+ });
40
+ }
41
+ static update(fields, transaction) {
42
+ const _super = Object.create(null, {
43
+ b_update: { get: () => super.b_update }
44
+ });
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield _super.b_update.call(this, 'bettings', fields, 'cards', transaction);
47
+ });
48
+ }
49
+ static delete(fields, transaction) {
50
+ const _super = Object.create(null, {
51
+ b_delete: { get: () => super.b_delete }
52
+ });
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return yield _super.b_delete.call(this, 'bettings', fields, 'cards', transaction);
55
+ });
56
+ }
57
+ }
58
+ exports.default = cards;
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { championship_teams_select } from '../../@types/bettings/championship_teams_select';
4
+ import { championship_teams_where } from '../../@types/bettings/championship_teams_where';
5
+ import { championship_teams_update } from '../../@types/bettings/championship_teams_update';
6
+ import { championship_teams_fields } from '../../@types/bettings/championship_teams_fields';
7
+ export default class championship_teams extends base {
8
+ static get(fields: championship_teams_select, transaction: PoolClient | undefined): Promise<championship_teams_fields>;
9
+ static get_all(fields: championship_teams_select, transaction: PoolClient | undefined): Promise<championship_teams_fields[]>;
10
+ static create(fields: championship_teams, transaction: PoolClient | undefined): Promise<championship_teams_fields>;
11
+ static update(fields: championship_teams_update, transaction: PoolClient | undefined): Promise<any>;
12
+ static delete(fields: championship_teams_where, transaction: PoolClient | undefined): Promise<any>;
13
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const base_1 = __importDefault(require("../../base"));
16
+ class championship_teams extends base_1.default {
17
+ static get(fields, transaction) {
18
+ const _super = Object.create(null, {
19
+ b_get: { get: () => super.b_get }
20
+ });
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return yield _super.b_get.call(this, 'bettings', fields, 'championship_teams', transaction);
23
+ });
24
+ }
25
+ static get_all(fields, transaction) {
26
+ const _super = Object.create(null, {
27
+ b_get_all: { get: () => super.b_get_all }
28
+ });
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ return yield _super.b_get_all.call(this, 'bettings', fields, 'championship_teams', transaction);
31
+ });
32
+ }
33
+ static create(fields, transaction) {
34
+ const _super = Object.create(null, {
35
+ b_create: { get: () => super.b_create }
36
+ });
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield _super.b_create.call(this, 'bettings', fields, 'championship_teams', transaction);
39
+ });
40
+ }
41
+ static update(fields, transaction) {
42
+ const _super = Object.create(null, {
43
+ b_update: { get: () => super.b_update }
44
+ });
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield _super.b_update.call(this, 'bettings', fields, 'championship_teams', transaction);
47
+ });
48
+ }
49
+ static delete(fields, transaction) {
50
+ const _super = Object.create(null, {
51
+ b_delete: { get: () => super.b_delete }
52
+ });
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return yield _super.b_delete.call(this, 'bettings', fields, 'championship_teams', transaction);
55
+ });
56
+ }
57
+ }
58
+ exports.default = championship_teams;
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { championships_select } from '../../@types/bettings/championships_select';
4
+ import { championships_where } from '../../@types/bettings/championships_where';
5
+ import { championships_update } from '../../@types/bettings/championships_update';
6
+ import { championships_fields } from '../../@types/bettings/championships_fields';
7
+ export default class championships extends base {
8
+ static get(fields: championships_select, transaction: PoolClient | undefined): Promise<championships_fields>;
9
+ static get_all(fields: championships_select, transaction: PoolClient | undefined): Promise<championships_fields[]>;
10
+ static create(fields: championships, transaction: PoolClient | undefined): Promise<championships_fields>;
11
+ static update(fields: championships_update, transaction: PoolClient | undefined): Promise<any>;
12
+ static delete(fields: championships_where, transaction: PoolClient | undefined): Promise<any>;
13
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const base_1 = __importDefault(require("../../base"));
16
+ class championships extends base_1.default {
17
+ static get(fields, transaction) {
18
+ const _super = Object.create(null, {
19
+ b_get: { get: () => super.b_get }
20
+ });
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return yield _super.b_get.call(this, 'bettings', fields, 'championships', transaction);
23
+ });
24
+ }
25
+ static get_all(fields, transaction) {
26
+ const _super = Object.create(null, {
27
+ b_get_all: { get: () => super.b_get_all }
28
+ });
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ return yield _super.b_get_all.call(this, 'bettings', fields, 'championships', transaction);
31
+ });
32
+ }
33
+ static create(fields, transaction) {
34
+ const _super = Object.create(null, {
35
+ b_create: { get: () => super.b_create }
36
+ });
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield _super.b_create.call(this, 'bettings', fields, 'championships', transaction);
39
+ });
40
+ }
41
+ static update(fields, transaction) {
42
+ const _super = Object.create(null, {
43
+ b_update: { get: () => super.b_update }
44
+ });
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield _super.b_update.call(this, 'bettings', fields, 'championships', transaction);
47
+ });
48
+ }
49
+ static delete(fields, transaction) {
50
+ const _super = Object.create(null, {
51
+ b_delete: { get: () => super.b_delete }
52
+ });
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return yield _super.b_delete.call(this, 'bettings', fields, 'championships', transaction);
55
+ });
56
+ }
57
+ }
58
+ exports.default = championships;
@@ -0,0 +1,27 @@
1
+ import { PoolClient } from 'pg';
2
+ import { pool_tsx } from '../../@types';
3
+ import cards from './cards';
4
+ import teams from './teams';
5
+ import matches from './matches';
6
+ import betting_balls from './betting_balls';
7
+ import championships from './championships';
8
+ import match_teams from './match_teams';
9
+ import championship_teams from './championship_teams';
10
+ import card_options from './card_options';
11
+ import betting_ball_scores from './betting_ball_scores';
12
+ import betting_cards from './betting_cards';
13
+ declare const _default: {
14
+ query(query_string: string, query_params: Array<any>, transaction: PoolClient): Promise<any>;
15
+ transaction(callback: pool_tsx): Promise<void>;
16
+ cards: typeof cards;
17
+ teams: typeof teams;
18
+ matches: typeof matches;
19
+ betting_balls: typeof betting_balls;
20
+ championships: typeof championships;
21
+ match_teams: typeof match_teams;
22
+ championship_teams: typeof championship_teams;
23
+ card_options: typeof card_options;
24
+ betting_ball_scores: typeof betting_ball_scores;
25
+ betting_cards: typeof betting_cards;
26
+ };
27
+ export default _default;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const database_1 = __importDefault(require("../../../src/database"));
16
+ const cards_1 = __importDefault(require("./cards"));
17
+ const teams_1 = __importDefault(require("./teams"));
18
+ const matches_1 = __importDefault(require("./matches"));
19
+ const betting_balls_1 = __importDefault(require("./betting_balls"));
20
+ const championships_1 = __importDefault(require("./championships"));
21
+ const match_teams_1 = __importDefault(require("./match_teams"));
22
+ const championship_teams_1 = __importDefault(require("./championship_teams"));
23
+ const card_options_1 = __importDefault(require("./card_options"));
24
+ const betting_ball_scores_1 = __importDefault(require("./betting_ball_scores"));
25
+ const betting_cards_1 = __importDefault(require("./betting_cards"));
26
+ exports.default = {
27
+ query(query_string, query_params, transaction) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ return yield database_1.default.query('bettings', query_string, query_params, transaction);
30
+ });
31
+ },
32
+ transaction(callback) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ return yield database_1.default.transaction('bettings', callback);
35
+ });
36
+ },
37
+ cards: cards_1.default,
38
+ teams: teams_1.default,
39
+ matches: matches_1.default,
40
+ betting_balls: betting_balls_1.default,
41
+ championships: championships_1.default,
42
+ match_teams: match_teams_1.default,
43
+ championship_teams: championship_teams_1.default,
44
+ card_options: card_options_1.default,
45
+ betting_ball_scores: betting_ball_scores_1.default,
46
+ betting_cards: betting_cards_1.default
47
+ };
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { match_teams_select } from '../../@types/bettings/match_teams_select';
4
+ import { match_teams_where } from '../../@types/bettings/match_teams_where';
5
+ import { match_teams_update } from '../../@types/bettings/match_teams_update';
6
+ import { match_teams_fields } from '../../@types/bettings/match_teams_fields';
7
+ export default class match_teams extends base {
8
+ static get(fields: match_teams_select, transaction: PoolClient | undefined): Promise<match_teams_fields>;
9
+ static get_all(fields: match_teams_select, transaction: PoolClient | undefined): Promise<match_teams_fields[]>;
10
+ static create(fields: match_teams, transaction: PoolClient | undefined): Promise<match_teams_fields>;
11
+ static update(fields: match_teams_update, transaction: PoolClient | undefined): Promise<any>;
12
+ static delete(fields: match_teams_where, transaction: PoolClient | undefined): Promise<any>;
13
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const base_1 = __importDefault(require("../../base"));
16
+ class match_teams extends base_1.default {
17
+ static get(fields, transaction) {
18
+ const _super = Object.create(null, {
19
+ b_get: { get: () => super.b_get }
20
+ });
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return yield _super.b_get.call(this, 'bettings', fields, 'match_teams', transaction);
23
+ });
24
+ }
25
+ static get_all(fields, transaction) {
26
+ const _super = Object.create(null, {
27
+ b_get_all: { get: () => super.b_get_all }
28
+ });
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ return yield _super.b_get_all.call(this, 'bettings', fields, 'match_teams', transaction);
31
+ });
32
+ }
33
+ static create(fields, transaction) {
34
+ const _super = Object.create(null, {
35
+ b_create: { get: () => super.b_create }
36
+ });
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield _super.b_create.call(this, 'bettings', fields, 'match_teams', transaction);
39
+ });
40
+ }
41
+ static update(fields, transaction) {
42
+ const _super = Object.create(null, {
43
+ b_update: { get: () => super.b_update }
44
+ });
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield _super.b_update.call(this, 'bettings', fields, 'match_teams', transaction);
47
+ });
48
+ }
49
+ static delete(fields, transaction) {
50
+ const _super = Object.create(null, {
51
+ b_delete: { get: () => super.b_delete }
52
+ });
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return yield _super.b_delete.call(this, 'bettings', fields, 'match_teams', transaction);
55
+ });
56
+ }
57
+ }
58
+ exports.default = match_teams;
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { matches_select } from '../../@types/bettings/matches_select';
4
+ import { matches_where } from '../../@types/bettings/matches_where';
5
+ import { matches_update } from '../../@types/bettings/matches_update';
6
+ import { matches_fields } from '../../@types/bettings/matches_fields';
7
+ export default class matches extends base {
8
+ static get(fields: matches_select, transaction: PoolClient | undefined): Promise<matches_fields>;
9
+ static get_all(fields: matches_select, transaction: PoolClient | undefined): Promise<matches_fields[]>;
10
+ static create(fields: matches, transaction: PoolClient | undefined): Promise<matches_fields>;
11
+ static update(fields: matches_update, transaction: PoolClient | undefined): Promise<any>;
12
+ static delete(fields: matches_where, transaction: PoolClient | undefined): Promise<any>;
13
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const base_1 = __importDefault(require("../../base"));
16
+ class matches extends base_1.default {
17
+ static get(fields, transaction) {
18
+ const _super = Object.create(null, {
19
+ b_get: { get: () => super.b_get }
20
+ });
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return yield _super.b_get.call(this, 'bettings', fields, 'matches', transaction);
23
+ });
24
+ }
25
+ static get_all(fields, transaction) {
26
+ const _super = Object.create(null, {
27
+ b_get_all: { get: () => super.b_get_all }
28
+ });
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ return yield _super.b_get_all.call(this, 'bettings', fields, 'matches', transaction);
31
+ });
32
+ }
33
+ static create(fields, transaction) {
34
+ const _super = Object.create(null, {
35
+ b_create: { get: () => super.b_create }
36
+ });
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield _super.b_create.call(this, 'bettings', fields, 'matches', transaction);
39
+ });
40
+ }
41
+ static update(fields, transaction) {
42
+ const _super = Object.create(null, {
43
+ b_update: { get: () => super.b_update }
44
+ });
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return yield _super.b_update.call(this, 'bettings', fields, 'matches', transaction);
47
+ });
48
+ }
49
+ static delete(fields, transaction) {
50
+ const _super = Object.create(null, {
51
+ b_delete: { get: () => super.b_delete }
52
+ });
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return yield _super.b_delete.call(this, 'bettings', fields, 'matches', transaction);
55
+ });
56
+ }
57
+ }
58
+ exports.default = matches;
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { teams_select } from '../../@types/bettings/teams_select';
4
+ import { teams_where } from '../../@types/bettings/teams_where';
5
+ import { teams_update } from '../../@types/bettings/teams_update';
6
+ import { teams_fields } from '../../@types/bettings/teams_fields';
7
+ export default class teams extends base {
8
+ static get(fields: teams_select, transaction: PoolClient | undefined): Promise<teams_fields>;
9
+ static get_all(fields: teams_select, transaction: PoolClient | undefined): Promise<teams_fields[]>;
10
+ static create(fields: teams, transaction: PoolClient | undefined): Promise<teams_fields>;
11
+ static update(fields: teams_update, transaction: PoolClient | undefined): Promise<any>;
12
+ static delete(fields: teams_where, transaction: PoolClient | undefined): Promise<any>;
13
+ }