MCPcopy
hub / github.com/drizzle-team/drizzle-orm / join

Function join

drizzle-orm/src/sql/sql.ts:528–537  ·  view source on GitHub ↗
(chunks: SQLChunk[], separator?: SQLChunk)

Source from the content-addressed store, hash-verified

526 * ```
527 */
528 export function join(chunks: SQLChunk[], separator?: SQLChunk): SQL {
529 const result: SQLChunk[] = [];
530 for (const [i, chunk] of chunks.entries()) {
531 if (i > 0 && separator !== undefined) {
532 result.push(separator);
533 }
534 result.push(chunk);
535 }
536 return new SQL(result);
537 }
538
539 /**
540 * Create a SQL chunk that represents a DB identifier (table, column, index etc.).

Callers 11

prepareOutFolderFunction · 0.85
certsFunction · 0.85
drizzleConfigFromFileFunction · 0.85
dropMigrationFunction · 0.85
introspectPostgresFunction · 0.85
introspectGelFunction · 0.85
introspectMysqlFunction · 0.85
introspectSingleStoreFunction · 0.85
introspectSqliteFunction · 0.85
introspectLibSQLFunction · 0.85
writeResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected