Skip to content

Commit

Permalink
Asc desc on safe string (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasavila00 authored Dec 4, 2024
1 parent 3724b9d commit 350b196
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/safe-string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
}

/**
Expand Down

0 comments on commit 350b196

Please sign in to comment.