# Type Alias BuildAliasTable<TTable, TAlias>

BuildAliasTable: TTable extends Table
? SQLiteTableWithColumns<
UpdateTableConfig<
TTable["_"]["config"],
{
columns: MapColumnsToTableAlias<
TTable["_"]["columns"],
TAlias,
"sqlite",
>;
name: TAlias;
},
>,
>
: TTable extends View
? SQLiteViewWithSelection<
TAlias,
TTable["_"]["existing"],
MapColumnsToTableAlias<TTable["_"]["selectedFields"], TAlias, "sqlite">,
>
: never

#### Type Parameters

- TTable extends SQLiteTable | View
- TAlias extends string

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/query-builders/select.types.d.ts:20