remult 2.7.25-next.2 → 2.7.25
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.
- package/package.json +1 -1
- package/src/entity.d.ts +8 -8
package/package.json
CHANGED
package/src/entity.d.ts
CHANGED
|
@@ -158,15 +158,15 @@ export interface EntityOptions<entityType = unknown> {
|
|
|
158
158
|
dbName?: string;
|
|
159
159
|
/** For entities that are based on SQL expressions instead of a physical table or view
|
|
160
160
|
* @example
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
161
|
+
* @Entity('people', {
|
|
162
|
+
* sqlExpression:`select id,name from employees
|
|
163
|
+
* union all select id,name from contractors`,
|
|
164
164
|
* })
|
|
165
|
-
* export class Person{
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
165
|
+
* export class Person {
|
|
166
|
+
* @Fields.string()
|
|
167
|
+
* id=''
|
|
168
|
+
* @Fields.string()
|
|
169
|
+
* name=''
|
|
170
170
|
* }
|
|
171
171
|
*/
|
|
172
172
|
sqlExpression?: string | ((entity: EntityMetadata<entityType>) => string | Promise<string>);
|