Updates
This commit is contained in:
@@ -169,6 +169,9 @@ export default function sqlGenerator<
|
||||
typeof mtch.source == "object" ? mtch.source.fieldName : mtch.source
|
||||
}=${(() => {
|
||||
if (mtch.targetLiteral) {
|
||||
if (typeof mtch.targetLiteral == "number") {
|
||||
return `${mtch.targetLiteral}`;
|
||||
}
|
||||
return `'${mtch.targetLiteral}'`;
|
||||
}
|
||||
|
||||
|
||||
@@ -1262,7 +1262,7 @@ export type ServerQueryParamsJoinMatchObject<
|
||||
/** Field name from the **Join Table** */
|
||||
target?: keyof Field | ServerQueryParamsJoinMatchSourceTargetObject;
|
||||
/** A literal value: No source and target Needed! */
|
||||
targetLiteral?: string;
|
||||
targetLiteral?: string | number;
|
||||
__batch?: {
|
||||
matches: Omit<ServerQueryParamsJoinMatchObject<Field>, "__batch">[];
|
||||
operator: "AND" | "OR";
|
||||
|
||||
Reference in New Issue
Block a user