@neogroup/neorm 0.0.1 → 0.0.2

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 (225) hide show
  1. package/README.md +1 -0
  2. package/dist/database/Connection.d.ts +10 -0
  3. package/dist/database/Connection.js +3 -0
  4. package/dist/database/Connection.js.map +1 -0
  5. package/dist/database/DB.d.ts +58 -0
  6. package/dist/database/DB.js +229 -0
  7. package/dist/database/DB.js.map +1 -0
  8. package/dist/database/DataConnection.d.ts +24 -0
  9. package/dist/database/DataConnection.js +99 -0
  10. package/dist/database/DataConnection.js.map +1 -0
  11. package/dist/database/DataSet.d.ts +3 -0
  12. package/dist/database/DataSet.js +3 -0
  13. package/dist/database/DataSet.js.map +1 -0
  14. package/dist/database/DataSource.d.ts +23 -0
  15. package/dist/database/DataSource.js +56 -0
  16. package/dist/database/DataSource.js.map +1 -0
  17. package/dist/database/DataTable.d.ts +19 -0
  18. package/dist/database/DataTable.js +75 -0
  19. package/dist/database/DataTable.js.map +1 -0
  20. package/dist/database/index.d.ts +7 -0
  21. package/dist/database/index.js +24 -0
  22. package/dist/database/index.js.map +1 -0
  23. package/dist/database/sources/index.d.ts +3 -0
  24. package/dist/database/sources/index.js +20 -0
  25. package/dist/database/sources/index.js.map +1 -0
  26. package/dist/database/sources/mysql/MysqlConnection.d.ts +14 -0
  27. package/dist/database/sources/mysql/MysqlConnection.js +36 -0
  28. package/dist/database/sources/mysql/MysqlConnection.js.map +1 -0
  29. package/dist/database/sources/mysql/MysqlDataSource.d.ts +24 -0
  30. package/dist/database/sources/mysql/MysqlDataSource.js +72 -0
  31. package/dist/database/sources/mysql/MysqlDataSource.js.map +1 -0
  32. package/dist/database/sources/mysql/MysqlQueryBuilder.d.ts +6 -0
  33. package/dist/database/sources/mysql/MysqlQueryBuilder.js +28 -0
  34. package/dist/database/sources/mysql/MysqlQueryBuilder.js.map +1 -0
  35. package/dist/database/sources/mysql/index.d.ts +3 -0
  36. package/dist/database/sources/mysql/index.js +20 -0
  37. package/dist/database/sources/mysql/index.js.map +1 -0
  38. package/dist/database/sources/postgres/PostgresConnection.d.ts +13 -0
  39. package/dist/database/sources/postgres/PostgresConnection.js +40 -0
  40. package/dist/database/sources/postgres/PostgresConnection.js.map +1 -0
  41. package/dist/database/sources/postgres/PostgresDataSource.d.ts +24 -0
  42. package/dist/database/sources/postgres/PostgresDataSource.js +73 -0
  43. package/dist/database/sources/postgres/PostgresDataSource.js.map +1 -0
  44. package/dist/database/sources/postgres/PostgresQueryBuilder.d.ts +5 -0
  45. package/dist/database/sources/postgres/PostgresQueryBuilder.js +13 -0
  46. package/dist/database/sources/postgres/PostgresQueryBuilder.js.map +1 -0
  47. package/dist/database/sources/postgres/index.d.ts +2 -0
  48. package/dist/database/sources/postgres/index.js +19 -0
  49. package/dist/database/sources/postgres/index.js.map +1 -0
  50. package/dist/database/sources/sqlite/SqliteConnection.d.ts +14 -0
  51. package/dist/database/sources/sqlite/SqliteConnection.js +37 -0
  52. package/dist/database/sources/sqlite/SqliteConnection.js.map +1 -0
  53. package/dist/database/sources/sqlite/SqliteDataSource.d.ts +11 -0
  54. package/dist/database/sources/sqlite/SqliteDataSource.js +34 -0
  55. package/dist/database/sources/sqlite/SqliteDataSource.js.map +1 -0
  56. package/dist/database/sources/sqlite/SqliteQueryBuilder.d.ts +6 -0
  57. package/dist/database/sources/sqlite/SqliteQueryBuilder.js +23 -0
  58. package/dist/database/sources/sqlite/SqliteQueryBuilder.js.map +1 -0
  59. package/dist/database/sources/sqlite/index.d.ts +3 -0
  60. package/dist/database/sources/sqlite/index.js +20 -0
  61. package/dist/database/sources/sqlite/index.js.map +1 -0
  62. package/dist/entities/CastType.d.ts +1 -0
  63. package/dist/entities/CastType.js +3 -0
  64. package/dist/entities/CastType.js.map +1 -0
  65. package/dist/entities/Entities.d.ts +14 -0
  66. package/dist/entities/Entities.js +85 -0
  67. package/dist/entities/Entities.js.map +1 -0
  68. package/dist/entities/EntityQuery.d.ts +60 -0
  69. package/dist/entities/EntityQuery.js +305 -0
  70. package/dist/entities/EntityQuery.js.map +1 -0
  71. package/dist/entities/RelationshipType.d.ts +1 -0
  72. package/dist/entities/RelationshipType.js +3 -0
  73. package/dist/entities/RelationshipType.js.map +1 -0
  74. package/dist/entities/decorators/BelongsTo.d.ts +2 -0
  75. package/dist/entities/decorators/BelongsTo.js +16 -0
  76. package/dist/entities/decorators/BelongsTo.js.map +1 -0
  77. package/dist/entities/decorators/Column.d.ts +13 -0
  78. package/dist/entities/decorators/Column.js +13 -0
  79. package/dist/entities/decorators/Column.js.map +1 -0
  80. package/dist/entities/decorators/Entity.d.ts +15 -0
  81. package/dist/entities/decorators/Entity.js +170 -0
  82. package/dist/entities/decorators/Entity.js.map +1 -0
  83. package/dist/entities/decorators/HasMany.d.ts +2 -0
  84. package/dist/entities/decorators/HasMany.js +16 -0
  85. package/dist/entities/decorators/HasMany.js.map +1 -0
  86. package/dist/entities/decorators/HasManyThrough.d.ts +2 -0
  87. package/dist/entities/decorators/HasManyThrough.js +24 -0
  88. package/dist/entities/decorators/HasManyThrough.js.map +1 -0
  89. package/dist/entities/decorators/HasOne.d.ts +2 -0
  90. package/dist/entities/decorators/HasOne.js +13 -0
  91. package/dist/entities/decorators/HasOne.js.map +1 -0
  92. package/dist/entities/decorators/HasOneThrough.d.ts +2 -0
  93. package/dist/entities/decorators/HasOneThrough.js +24 -0
  94. package/dist/entities/decorators/HasOneThrough.js.map +1 -0
  95. package/dist/entities/decorators/casts.d.ts +3 -0
  96. package/dist/entities/decorators/casts.js +39 -0
  97. package/dist/entities/decorators/casts.js.map +1 -0
  98. package/dist/entities/decorators/index.d.ts +7 -0
  99. package/dist/entities/decorators/index.js +24 -0
  100. package/dist/entities/decorators/index.js.map +1 -0
  101. package/dist/entities/decorators/metadata.d.ts +19 -0
  102. package/dist/entities/decorators/metadata.js +12 -0
  103. package/dist/entities/decorators/metadata.js.map +1 -0
  104. package/dist/entities/index.d.ts +5 -3
  105. package/dist/entities/index.js +5 -2
  106. package/dist/entities/index.js.map +1 -1
  107. package/dist/entities/relationship.d.ts +1 -6
  108. package/dist/entities/relationship.js +1 -22
  109. package/dist/entities/relationship.js.map +1 -1
  110. package/dist/index.d.ts +2 -9
  111. package/dist/index.js +2 -14
  112. package/dist/index.js.map +1 -1
  113. package/dist/query/DeleteQuery.d.ts +8 -0
  114. package/dist/query/DeleteQuery.js +17 -0
  115. package/dist/query/DeleteQuery.js.map +1 -0
  116. package/dist/query/InsertQuery.d.ts +8 -0
  117. package/dist/query/InsertQuery.js +17 -0
  118. package/dist/query/InsertQuery.js.map +1 -0
  119. package/dist/query/QueryTable.d.ts +7 -0
  120. package/dist/query/QueryTable.js +3 -0
  121. package/dist/query/QueryTable.js.map +1 -0
  122. package/dist/query/SelectQuery.d.ts +9 -0
  123. package/dist/query/SelectQuery.js +33 -0
  124. package/dist/query/SelectQuery.js.map +1 -0
  125. package/dist/query/UpdateQuery.d.ts +8 -0
  126. package/dist/query/UpdateQuery.js +17 -0
  127. package/dist/query/UpdateQuery.js.map +1 -0
  128. package/dist/query/builders/DefaultQueryBuilder.d.ts +87 -0
  129. package/dist/query/builders/DefaultQueryBuilder.js +524 -0
  130. package/dist/query/builders/DefaultQueryBuilder.js.map +1 -0
  131. package/dist/query/builders/QueryBuilder.d.ts +5 -0
  132. package/dist/query/builders/QueryBuilder.js +7 -0
  133. package/dist/query/builders/QueryBuilder.js.map +1 -0
  134. package/dist/query/builders/index.d.ts +2 -2
  135. package/dist/query/builders/index.js +2 -2
  136. package/dist/query/builders/index.js.map +1 -1
  137. package/dist/query/conditions/BasicCondition.d.ts +6 -0
  138. package/dist/query/conditions/BasicCondition.js +3 -0
  139. package/dist/query/conditions/BasicCondition.js.map +1 -0
  140. package/dist/query/conditions/ColumnCondition.d.ts +6 -0
  141. package/dist/query/conditions/ColumnCondition.js +3 -0
  142. package/dist/query/conditions/ColumnCondition.js.map +1 -0
  143. package/dist/query/conditions/Condition.d.ts +5 -0
  144. package/dist/query/conditions/Condition.js +3 -0
  145. package/dist/query/conditions/Condition.js.map +1 -0
  146. package/dist/query/conditions/ConditionConnector.d.ts +4 -0
  147. package/dist/query/conditions/ConditionConnector.js +9 -0
  148. package/dist/query/conditions/ConditionConnector.js.map +1 -0
  149. package/dist/query/conditions/ConditionGroup.d.ts +40 -0
  150. package/dist/query/conditions/ConditionGroup.js +138 -0
  151. package/dist/query/conditions/ConditionGroup.js.map +1 -0
  152. package/dist/query/conditions/ConnectedCondition.d.ts +6 -0
  153. package/dist/query/conditions/ConnectedCondition.js +3 -0
  154. package/dist/query/conditions/ConnectedCondition.js.map +1 -0
  155. package/dist/query/conditions/RawCondition.d.ts +4 -0
  156. package/dist/query/conditions/RawCondition.js +3 -0
  157. package/dist/query/conditions/RawCondition.js.map +1 -0
  158. package/dist/query/conditions/index.d.ts +7 -0
  159. package/dist/query/conditions/index.js +24 -0
  160. package/dist/query/conditions/index.js.map +1 -0
  161. package/dist/query/features/HasAlias.d.ts +6 -0
  162. package/dist/query/features/HasAlias.js +17 -0
  163. package/dist/query/features/HasAlias.js.map +1 -0
  164. package/dist/query/features/HasDistinct.d.ts +6 -0
  165. package/dist/query/features/HasDistinct.js +20 -0
  166. package/dist/query/features/HasDistinct.js.map +1 -0
  167. package/dist/query/features/HasFieldValues.d.ts +9 -0
  168. package/dist/query/features/HasFieldValues.js +27 -0
  169. package/dist/query/features/HasFieldValues.js.map +1 -0
  170. package/dist/query/features/HasGroupByFields.d.ts +7 -0
  171. package/dist/query/features/HasGroupByFields.js +21 -0
  172. package/dist/query/features/HasGroupByFields.js.map +1 -0
  173. package/dist/query/features/HasHavingConditions.d.ts +13 -0
  174. package/dist/query/features/HasHavingConditions.js +28 -0
  175. package/dist/query/features/HasHavingConditions.js.map +1 -0
  176. package/dist/query/features/HasJoins.d.ts +41 -0
  177. package/dist/query/features/HasJoins.js +66 -0
  178. package/dist/query/features/HasJoins.js.map +1 -0
  179. package/dist/query/features/HasLimit.d.ts +6 -0
  180. package/dist/query/features/HasLimit.js +20 -0
  181. package/dist/query/features/HasLimit.js.map +1 -0
  182. package/dist/query/features/HasOffset.d.ts +6 -0
  183. package/dist/query/features/HasOffset.js +20 -0
  184. package/dist/query/features/HasOffset.js.map +1 -0
  185. package/dist/query/features/HasOrderByFields.d.ts +15 -0
  186. package/dist/query/features/HasOrderByFields.js +38 -0
  187. package/dist/query/features/HasOrderByFields.js.map +1 -0
  188. package/dist/query/features/HasSelectFields.d.ts +11 -0
  189. package/dist/query/features/HasSelectFields.js +21 -0
  190. package/dist/query/features/HasSelectFields.js.map +1 -0
  191. package/dist/query/features/HasTable.d.ts +7 -0
  192. package/dist/query/features/HasTable.js +20 -0
  193. package/dist/query/features/HasTable.js.map +1 -0
  194. package/dist/query/features/HasUnions.d.ts +13 -0
  195. package/dist/query/features/HasUnions.js +21 -0
  196. package/dist/query/features/HasUnions.js.map +1 -0
  197. package/dist/query/features/HasWhen.d.ts +3 -0
  198. package/dist/query/features/HasWhen.js +13 -0
  199. package/dist/query/features/HasWhen.js.map +1 -0
  200. package/dist/query/features/HasWhereConditions.d.ts +35 -0
  201. package/dist/query/features/HasWhereConditions.js +92 -0
  202. package/dist/query/features/HasWhereConditions.js.map +1 -0
  203. package/dist/query/features/index.d.ts +14 -14
  204. package/dist/query/features/index.js +14 -14
  205. package/dist/query/features/index.js.map +1 -1
  206. package/dist/query/fields/BasicField.d.ts +5 -0
  207. package/dist/query/fields/BasicField.js +3 -0
  208. package/dist/query/fields/BasicField.js.map +1 -0
  209. package/dist/query/fields/Field.d.ts +3 -0
  210. package/dist/query/fields/Field.js +3 -0
  211. package/dist/query/fields/Field.js.map +1 -0
  212. package/dist/query/fields/RawField.d.ts +1 -0
  213. package/dist/query/fields/RawField.js +3 -0
  214. package/dist/query/fields/RawField.js.map +1 -0
  215. package/dist/query/fields/index.d.ts +3 -0
  216. package/dist/query/fields/index.js +20 -0
  217. package/dist/query/fields/index.js.map +1 -0
  218. package/dist/query/index.d.ts +7 -7
  219. package/dist/query/index.js +7 -7
  220. package/dist/query/index.js.map +1 -1
  221. package/dist/query/query.js +1 -1
  222. package/dist/query/query.js.map +1 -1
  223. package/dist/query/statement.js +1 -1
  224. package/dist/query/statement.js.map +1 -1
  225. package/package.json +14 -9
@@ -0,0 +1,15 @@
1
+ import { BasicField, RawField } from '../fields';
2
+ export declare enum OrderByDirection {
3
+ ASC = "ASC",
4
+ DESC = "DESC"
5
+ }
6
+ export type OrderByField = RawField | (BasicField & {
7
+ direction?: OrderByDirection;
8
+ });
9
+ export declare abstract class HasOrderByFields<R> {
10
+ protected _orderByFields?: Array<OrderByField>;
11
+ setOrderByFields(orderByFields: Array<OrderByField> | undefined): R;
12
+ getOrderByFields(): Array<OrderByField> | undefined;
13
+ orderBy(field: OrderByField): R;
14
+ orderBy(field: RawField | BasicField, direction: OrderByDirection): R;
15
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasOrderByFields = exports.OrderByDirection = void 0;
4
+ var OrderByDirection;
5
+ (function (OrderByDirection) {
6
+ OrderByDirection["ASC"] = "ASC";
7
+ OrderByDirection["DESC"] = "DESC";
8
+ })(OrderByDirection = exports.OrderByDirection || (exports.OrderByDirection = {}));
9
+ class HasOrderByFields {
10
+ setOrderByFields(orderByFields) {
11
+ this._orderByFields = orderByFields;
12
+ return this;
13
+ }
14
+ getOrderByFields() {
15
+ return this._orderByFields;
16
+ }
17
+ orderBy(field, direction) {
18
+ if (!this._orderByFields) {
19
+ this._orderByFields = [];
20
+ }
21
+ let orderByField;
22
+ if (direction) {
23
+ if (typeof field === 'object') {
24
+ orderByField = { name: field.name, table: field.table, direction };
25
+ }
26
+ else {
27
+ orderByField = { name: field, direction };
28
+ }
29
+ }
30
+ else {
31
+ orderByField = field;
32
+ }
33
+ this._orderByFields.push(orderByField);
34
+ return this;
35
+ }
36
+ }
37
+ exports.HasOrderByFields = HasOrderByFields;
38
+ //# sourceMappingURL=HasOrderByFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HasOrderByFields.js","sourceRoot":"","sources":["../../../src/query/features/HasOrderByFields.ts"],"names":[],"mappings":";;;AAEA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iCAAa,CAAA;AACf,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAID,MAAsB,gBAAgB;IAG7B,gBAAgB,CAAC,aAA8C;QACpE,IAAI,CAAC,cAAc,GAAG,aAAa,CAAA;QAEnC,OAAO,IAAoB,CAAA;IAC7B,CAAC;IAEM,gBAAgB;QACrB,OAAO,IAAI,CAAC,cAAc,CAAA;IAC5B,CAAC;IAIM,OAAO,CAAC,KAAgC,EAAE,SAA4B;QAC3E,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACxB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAA;SACzB;QAED,IAAI,YAA0B,CAAA;QAE9B,IAAI,SAAS,EAAE;YACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,YAAY,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,CAAA;aACnE;iBAAM;gBACL,YAAY,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAA;aAC1C;SACF;aAAM;YACL,YAAY,GAAG,KAAK,CAAA;SACrB;QAED,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;QAEtC,OAAO,IAAoB,CAAA;IAC7B,CAAC;CACF;AApCD,4CAoCC"}
@@ -0,0 +1,11 @@
1
+ import { BasicField, RawField } from '../fields';
2
+ export type SelectField = RawField | (BasicField & {
3
+ function?: string;
4
+ alias?: string;
5
+ });
6
+ export declare abstract class HasSelectFields<R> {
7
+ protected _selectFields?: Array<SelectField>;
8
+ setSelectFields(selectFields: Array<SelectField> | undefined): R;
9
+ getSelectFields(): Array<SelectField> | undefined;
10
+ select(...fields: Array<SelectField>): R;
11
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasSelectFields = void 0;
4
+ class HasSelectFields {
5
+ setSelectFields(selectFields) {
6
+ this._selectFields = selectFields;
7
+ return this;
8
+ }
9
+ getSelectFields() {
10
+ return this._selectFields;
11
+ }
12
+ select(...fields) {
13
+ if (!this._selectFields) {
14
+ this._selectFields = [];
15
+ }
16
+ this._selectFields.push(...fields);
17
+ return this;
18
+ }
19
+ }
20
+ exports.HasSelectFields = HasSelectFields;
21
+ //# sourceMappingURL=HasSelectFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HasSelectFields.js","sourceRoot":"","sources":["../../../src/query/features/HasSelectFields.ts"],"names":[],"mappings":";;;AAIA,MAAsB,eAAe;IAG5B,eAAe,CAAC,YAA4C;QACjE,IAAI,CAAC,aAAa,GAAG,YAAY,CAAA;QAEjC,OAAO,IAAoB,CAAA;IAC7B,CAAC;IAEM,eAAe;QACpB,OAAO,IAAI,CAAC,aAAa,CAAA;IAC3B,CAAC;IAEM,MAAM,CAAC,GAAG,MAA0B;QACzC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAA;SACxB;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAA;QAElC,OAAO,IAAoB,CAAA;IAC7B,CAAC;CACF;AAtBD,0CAsBC"}
@@ -0,0 +1,7 @@
1
+ import { QueryTable } from '../QueryTable';
2
+ export declare abstract class HasTable<R> {
3
+ protected _table: QueryTable;
4
+ setTable(table: QueryTable): R;
5
+ getTable(): QueryTable;
6
+ table(table: QueryTable): R;
7
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasTable = void 0;
4
+ class HasTable {
5
+ constructor() {
6
+ this._table = '';
7
+ }
8
+ setTable(table) {
9
+ this._table = table;
10
+ return this;
11
+ }
12
+ getTable() {
13
+ return this._table;
14
+ }
15
+ table(table) {
16
+ return this.setTable(table);
17
+ }
18
+ }
19
+ exports.HasTable = HasTable;
20
+ //# sourceMappingURL=HasTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HasTable.js","sourceRoot":"","sources":["../../../src/query/features/HasTable.ts"],"names":[],"mappings":";;;AAEA,MAAsB,QAAQ;IAA9B;QACY,WAAM,GAAe,EAAE,CAAA;IAenC,CAAC;IAbQ,QAAQ,CAAC,KAAiB;QAC/B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QAEnB,OAAO,IAAoB,CAAA;IAC7B,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAA;IACpB,CAAC;IAEM,KAAK,CAAC,KAAiB;QAC5B,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC7B,CAAC;CACF;AAhBD,4BAgBC"}
@@ -0,0 +1,13 @@
1
+ import { SelectQuery } from '../SelectQuery';
2
+ export declare abstract class HasUnions<R> {
3
+ protected _unions?: Array<{
4
+ query: SelectQuery;
5
+ all: boolean;
6
+ }>;
7
+ getUnions(): Array<{
8
+ query: SelectQuery;
9
+ all: boolean;
10
+ }>;
11
+ union(query: SelectQuery): R;
12
+ unionAll(query: SelectQuery): R;
13
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasUnions = void 0;
4
+ class HasUnions {
5
+ getUnions() {
6
+ if (!this._unions) {
7
+ this._unions = [];
8
+ }
9
+ return this._unions;
10
+ }
11
+ union(query) {
12
+ this.getUnions().push({ query, all: false });
13
+ return this;
14
+ }
15
+ unionAll(query) {
16
+ this.getUnions().push({ query, all: true });
17
+ return this;
18
+ }
19
+ }
20
+ exports.HasUnions = HasUnions;
21
+ //# sourceMappingURL=HasUnions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HasUnions.js","sourceRoot":"","sources":["../../../src/query/features/HasUnions.ts"],"names":[],"mappings":";;;AAEA,MAAsB,SAAS;IAGtB,SAAS;QACd,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;SAClB;QAED,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAEM,KAAK,CAAC,KAAkB;QAC7B,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAA;QAE5C,OAAO,IAAoB,CAAA;IAC7B,CAAC;IAEM,QAAQ,CAAC,KAAkB;QAChC,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;QAE3C,OAAO,IAAoB,CAAA;IAC7B,CAAC;CACF;AAtBD,8BAsBC"}
@@ -0,0 +1,3 @@
1
+ export declare abstract class HasWhen<R> {
2
+ when(condition: boolean, callback: (query: R) => void): R;
3
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasWhen = void 0;
4
+ class HasWhen {
5
+ when(condition, callback) {
6
+ if (condition) {
7
+ callback(this);
8
+ }
9
+ return this;
10
+ }
11
+ }
12
+ exports.HasWhen = HasWhen;
13
+ //# sourceMappingURL=HasWhen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HasWhen.js","sourceRoot":"","sources":["../../../src/query/features/HasWhen.ts"],"names":[],"mappings":";;;AAAA,MAAsB,OAAO;IACpB,IAAI,CAAC,SAAkB,EAAE,QAA4B;QAC1D,IAAI,SAAS,EAAE;YACb,QAAQ,CAAC,IAAoB,CAAC,CAAA;SAC/B;QAED,OAAO,IAAoB,CAAA;IAC7B,CAAC;CACF;AARD,0BAQC"}
@@ -0,0 +1,35 @@
1
+ import { Condition, ConditionGroup } from '../conditions';
2
+ import { Field } from '../fields';
3
+ export declare abstract class HasWhereConditions<R> {
4
+ protected _whereConditions?: ConditionGroup;
5
+ setWhereConditions(conditions: ConditionGroup | undefined): R;
6
+ getWhereConditions(): ConditionGroup;
7
+ where(callback: (group: ConditionGroup) => void): R;
8
+ where(condition: Condition): R;
9
+ where(field: Field, value: any): R;
10
+ where(field: Field, operator: string, value: any): R;
11
+ whereIn(field: Field, values: Array<any>): R;
12
+ whereNotIn(field: Field, values: Array<any>): R;
13
+ whereBetween(field: Field, range: [any, any]): R;
14
+ whereNotBetween(field: Field, range: [any, any]): R;
15
+ whereNull(field: Field): R;
16
+ whereNotNull(field: Field): R;
17
+ whereLike(field: Field, pattern: string): R;
18
+ whereNotLike(field: Field, pattern: string): R;
19
+ orWhere(callback: (group: ConditionGroup) => void): R;
20
+ orWhere(condition: Condition): R;
21
+ orWhere(field: Field, value: any): R;
22
+ orWhere(field: Field, operator: string, value: any): R;
23
+ orWhereIn(field: Field, values: Array<any>): R;
24
+ orWhereNotIn(field: Field, values: Array<any>): R;
25
+ orWhereBetween(field: Field, range: [any, any]): R;
26
+ orWhereNotBetween(field: Field, range: [any, any]): R;
27
+ orWhereNull(field: Field): R;
28
+ orWhereNotNull(field: Field): R;
29
+ orWhereLike(field: Field, pattern: string): R;
30
+ orWhereNotLike(field: Field, pattern: string): R;
31
+ whereColumn(field: Field, column: Field): R;
32
+ whereColumn(field: Field, operator: string, column: Field): R;
33
+ orWhereColumn(field: Field, column: Field): R;
34
+ orWhereColumn(field: Field, operator: string, column: Field): R;
35
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasWhereConditions = void 0;
4
+ const conditions_1 = require("../conditions");
5
+ class HasWhereConditions {
6
+ setWhereConditions(conditions) {
7
+ this._whereConditions = conditions;
8
+ return this;
9
+ }
10
+ getWhereConditions() {
11
+ if (!this._whereConditions) {
12
+ this._whereConditions = new conditions_1.ConditionGroup();
13
+ }
14
+ return this._whereConditions;
15
+ }
16
+ where() {
17
+ // @ts-ignore
18
+ this.getWhereConditions().where(...arguments);
19
+ return this;
20
+ }
21
+ whereIn(field, values) {
22
+ return this.where(field, 'IN', values);
23
+ }
24
+ whereNotIn(field, values) {
25
+ return this.where(field, 'NOT IN', values);
26
+ }
27
+ whereBetween(field, range) {
28
+ return this.where(field, 'BETWEEN', range);
29
+ }
30
+ whereNotBetween(field, range) {
31
+ return this.where(field, 'NOT BETWEEN', range);
32
+ }
33
+ whereNull(field) {
34
+ return this.where(field, null);
35
+ }
36
+ whereNotNull(field) {
37
+ return this.where(field, '<>', null);
38
+ }
39
+ whereLike(field, pattern) {
40
+ return this.where(field, 'LIKE', pattern);
41
+ }
42
+ whereNotLike(field, pattern) {
43
+ return this.where(field, 'NOT LIKE', pattern);
44
+ }
45
+ orWhere() {
46
+ // @ts-ignore
47
+ this.getWhereConditions().orWhere(...arguments);
48
+ return this;
49
+ }
50
+ orWhereIn(field, values) {
51
+ return this.orWhere(field, 'IN', values);
52
+ }
53
+ orWhereNotIn(field, values) {
54
+ return this.orWhere(field, 'NOT IN', values);
55
+ }
56
+ orWhereBetween(field, range) {
57
+ return this.orWhere(field, 'BETWEEN', range);
58
+ }
59
+ orWhereNotBetween(field, range) {
60
+ return this.orWhere(field, 'NOT BETWEEN', range);
61
+ }
62
+ orWhereNull(field) {
63
+ return this.orWhere(field, null);
64
+ }
65
+ orWhereNotNull(field) {
66
+ return this.orWhere(field, '<>', null);
67
+ }
68
+ orWhereLike(field, pattern) {
69
+ return this.orWhere(field, 'LIKE', pattern);
70
+ }
71
+ orWhereNotLike(field, pattern) {
72
+ return this.orWhere(field, 'NOT LIKE', pattern);
73
+ }
74
+ whereColumn(field, operatorOrColumn, column) {
75
+ const operator = column !== undefined ? operatorOrColumn : '=';
76
+ const col = column !== undefined ? column : operatorOrColumn;
77
+ this.getWhereConditions()
78
+ .getConditions()
79
+ .push({ condition: { field, operator, column: col }, connector: conditions_1.ConditionConnector.AND });
80
+ return this;
81
+ }
82
+ orWhereColumn(field, operatorOrColumn, column) {
83
+ const operator = column !== undefined ? operatorOrColumn : '=';
84
+ const col = column !== undefined ? column : operatorOrColumn;
85
+ this.getWhereConditions()
86
+ .getConditions()
87
+ .push({ condition: { field, operator, column: col }, connector: conditions_1.ConditionConnector.OR });
88
+ return this;
89
+ }
90
+ }
91
+ exports.HasWhereConditions = HasWhereConditions;
92
+ //# sourceMappingURL=HasWhereConditions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HasWhereConditions.js","sourceRoot":"","sources":["../../../src/query/features/HasWhereConditions.ts"],"names":[],"mappings":"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"}
@@ -1,14 +1,14 @@
1
- export * from './has-alias';
2
- export * from './has-distinct';
3
- export * from './has-field-values';
4
- export * from './has-group-by-fields';
5
- export * from './has-having-conditions';
6
- export * from './has-joins';
7
- export * from './has-limit';
8
- export * from './has-offset';
9
- export * from './has-order-by-fields';
10
- export * from './has-select-fields';
11
- export * from './has-table';
12
- export * from './has-unions';
13
- export * from './has-when';
14
- export * from './has-where-conditions';
1
+ export * from './HasAlias';
2
+ export * from './HasDistinct';
3
+ export * from './HasFieldValues';
4
+ export * from './HasGroupByFields';
5
+ export * from './HasHavingConditions';
6
+ export * from './HasJoins';
7
+ export * from './HasLimit';
8
+ export * from './HasOffset';
9
+ export * from './HasOrderByFields';
10
+ export * from './HasSelectFields';
11
+ export * from './HasTable';
12
+ export * from './HasUnions';
13
+ export * from './HasWhen';
14
+ export * from './HasWhereConditions';
@@ -14,18 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./has-alias"), exports);
18
- __exportStar(require("./has-distinct"), exports);
19
- __exportStar(require("./has-field-values"), exports);
20
- __exportStar(require("./has-group-by-fields"), exports);
21
- __exportStar(require("./has-having-conditions"), exports);
22
- __exportStar(require("./has-joins"), exports);
23
- __exportStar(require("./has-limit"), exports);
24
- __exportStar(require("./has-offset"), exports);
25
- __exportStar(require("./has-order-by-fields"), exports);
26
- __exportStar(require("./has-select-fields"), exports);
27
- __exportStar(require("./has-table"), exports);
28
- __exportStar(require("./has-unions"), exports);
29
- __exportStar(require("./has-when"), exports);
30
- __exportStar(require("./has-where-conditions"), exports);
17
+ __exportStar(require("./HasAlias"), exports);
18
+ __exportStar(require("./HasDistinct"), exports);
19
+ __exportStar(require("./HasFieldValues"), exports);
20
+ __exportStar(require("./HasGroupByFields"), exports);
21
+ __exportStar(require("./HasHavingConditions"), exports);
22
+ __exportStar(require("./HasJoins"), exports);
23
+ __exportStar(require("./HasLimit"), exports);
24
+ __exportStar(require("./HasOffset"), exports);
25
+ __exportStar(require("./HasOrderByFields"), exports);
26
+ __exportStar(require("./HasSelectFields"), exports);
27
+ __exportStar(require("./HasTable"), exports);
28
+ __exportStar(require("./HasUnions"), exports);
29
+ __exportStar(require("./HasWhen"), exports);
30
+ __exportStar(require("./HasWhereConditions"), exports);
31
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query/features/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,iDAA8B;AAC9B,qDAAkC;AAClC,wDAAqC;AACrC,0DAAuC;AACvC,8CAA2B;AAC3B,8CAA2B;AAC3B,+CAA4B;AAC5B,wDAAqC;AACrC,sDAAmC;AACnC,8CAA2B;AAC3B,+CAA4B;AAC5B,6CAA0B;AAC1B,yDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query/features/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,gDAA6B;AAC7B,mDAAgC;AAChC,qDAAkC;AAClC,wDAAqC;AACrC,6CAA0B;AAC1B,6CAA0B;AAC1B,8CAA2B;AAC3B,qDAAkC;AAClC,oDAAiC;AACjC,6CAA0B;AAC1B,8CAA2B;AAC3B,4CAAyB;AACzB,uDAAoC"}
@@ -0,0 +1,5 @@
1
+ import { QueryTable } from '../QueryTable';
2
+ export type BasicField = {
3
+ name: string;
4
+ table?: QueryTable;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BasicField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasicField.js","sourceRoot":"","sources":["../../../src/query/fields/BasicField.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { BasicField } from './BasicField';
2
+ import { RawField } from './RawField';
3
+ export type Field = RawField | BasicField;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../src/query/fields/Field.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type RawField = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RawField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RawField.js","sourceRoot":"","sources":["../../../src/query/fields/RawField.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './BasicField';
2
+ export * from './Field';
3
+ export * from './RawField';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BasicField"), exports);
18
+ __exportStar(require("./Field"), exports);
19
+ __exportStar(require("./RawField"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query/fields/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,0CAAuB;AACvB,6CAA0B"}
@@ -1,11 +1,11 @@
1
1
  export * from './builders';
2
2
  export * from './conditions';
3
- export * from './delete-query';
3
+ export * from './DeleteQuery';
4
4
  export * from './features';
5
5
  export * from './fields';
6
- export * from './insert-query';
7
- export * from './query';
8
- export * from './select-query';
9
- export * from './statement';
10
- export * from './table';
11
- export * from './update-query';
6
+ export * from './InsertQuery';
7
+ export * from './Query';
8
+ export * from './QueryTable';
9
+ export * from './SelectQuery';
10
+ export * from './Statement';
11
+ export * from './UpdateQuery';
@@ -16,13 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./builders"), exports);
18
18
  __exportStar(require("./conditions"), exports);
19
- __exportStar(require("./delete-query"), exports);
19
+ __exportStar(require("./DeleteQuery"), exports);
20
20
  __exportStar(require("./features"), exports);
21
21
  __exportStar(require("./fields"), exports);
22
- __exportStar(require("./insert-query"), exports);
23
- __exportStar(require("./query"), exports);
24
- __exportStar(require("./select-query"), exports);
25
- __exportStar(require("./statement"), exports);
26
- __exportStar(require("./table"), exports);
27
- __exportStar(require("./update-query"), exports);
22
+ __exportStar(require("./InsertQuery"), exports);
23
+ __exportStar(require("./Query"), exports);
24
+ __exportStar(require("./QueryTable"), exports);
25
+ __exportStar(require("./SelectQuery"), exports);
26
+ __exportStar(require("./Statement"), exports);
27
+ __exportStar(require("./UpdateQuery"), exports);
28
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,+CAA4B;AAC5B,iDAA8B;AAC9B,6CAA0B;AAC1B,2CAAwB;AACxB,iDAA8B;AAC9B,0CAAuB;AACvB,iDAA8B;AAC9B,8CAA2B;AAC3B,0CAAuB;AACvB,iDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,+CAA4B;AAC5B,gDAA6B;AAC7B,6CAA0B;AAC1B,2CAAwB;AACxB,gDAA6B;AAC7B,0CAAuB;AACvB,+CAA4B;AAC5B,gDAA6B;AAC7B,8CAA2B;AAC3B,gDAA6B"}
@@ -4,4 +4,4 @@ exports.Query = void 0;
4
4
  class Query {
5
5
  }
6
6
  exports.Query = Query;
7
- //# sourceMappingURL=query.js.map
7
+ //# sourceMappingURL=Query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/query/query.ts"],"names":[],"mappings":";;;AAAA,MAAsB,KAAK;CAAG;AAA9B,sBAA8B"}
1
+ {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../src/query/Query.ts"],"names":[],"mappings":";;;AAAA,MAAsB,KAAK;CAAG;AAA9B,sBAA8B"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=statement.js.map
3
+ //# sourceMappingURL=Statement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"statement.js","sourceRoot":"","sources":["../../src/query/statement.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Statement.js","sourceRoot":"","sources":["../../src/query/Statement.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,15 +1,22 @@
1
1
  {
2
2
  "name": "@neogroup/neorm",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Database connector for javascript",
5
5
  "main": "dist/index.js",
6
- "module": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "require": "./dist/index.js",
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
7
14
  "author": "Luis Manuel Amengual",
8
15
  "license": "ISC",
9
16
  "bugs": {
10
- "url": "https://github.com/luismanuelamengual/NeORM/issues"
17
+ "url": "https://github.com/luismanuelamengual/neogroup-neorm/issues"
11
18
  },
12
- "homepage": "https://github.com/luismanuelamengual/NeORM#readme",
19
+ "homepage": "https://github.com/luismanuelamengual/neogroup-neorm#readme",
13
20
  "keywords": [
14
21
  "database",
15
22
  "connector",
@@ -23,7 +30,7 @@
23
30
  },
24
31
  "repository": {
25
32
  "type": "git",
26
- "url": "git+https://github.com/luismanuelamengual/NeORM.git"
33
+ "url": "git+https://github.com/luismanuelamengual/neogroup-neorm.git"
27
34
  },
28
35
  "scripts": {
29
36
  "build": "jest --passWithNoTests && tsc",
@@ -48,9 +55,7 @@
48
55
  "prettier": "^2.6.2",
49
56
  "ts-jest": "^29.1.0",
50
57
  "ts-node": "^10.4.0",
51
- "typescript": "^4.5.4"
58
+ "typescript": "^5.0.0"
52
59
  },
53
- "dependencies": {
54
- "esm": "^3.2.25"
55
- }
60
+ "dependencies": {}
56
61
  }