* Compiles an OrderBy array to a SQL ORDER BY clause.
( orderBy: IR.OrderBy, params: Array<unknown>, compileOptions?: CompileSQLiteOptions, )
| 119 | * Compiles an OrderBy array to a SQL ORDER BY clause. |
| 120 | */ |
| 121 | function compileOrderBy( |
| 122 | orderBy: IR.OrderBy, |
| 123 | params: Array<unknown>, |
| 124 | compileOptions?: CompileSQLiteOptions, |
| 125 | ): string { |
| 126 | const clauses = orderBy.map((clause: IR.OrderByClause) => |
| 127 | compileOrderByClause(clause, params, compileOptions), |
| 128 | ) |
| 129 | return clauses.join(`, `) |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Compiles a single OrderByClause to SQL. |
no test coverage detected