From 350b19633f74504a02422d1840cd706c9b00eecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20de=20=C3=81vila=20Martins?= Date: Wed, 4 Dec 2024 14:43:12 -0300 Subject: [PATCH] Asc desc on safe string (#88) --- src/safe-string.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/safe-string.ts b/src/safe-string.ts index 658a136..33f36b7 100644 --- a/src/safe-string.ts +++ b/src/safe-string.ts @@ -138,6 +138,14 @@ export class SafeString { notIn(other: SqlSupportedTypes): SafeString { return dsql`(${this} NOT IN (${other}))`; } + + asc(): SafeString { + return dsql`${this} ASC`; + } + + desc(): SafeString { + return dsql`${this} DESC`; + } } /**