Libraries v5.0.0
    Preparing search index...
    • Create an immutable table identity for typed flat joins and projections. The schema is not modified, so it can be joined repeatedly under different names.

      Type Parameters

      • S extends TableSchema
      • const N extends string

      Parameters

      • schema: S

        Source table schema, including mapped columns and read scopes.

      • name: N

        Unique identifier within the query, checked by isSqlIdentifier().

      Returns TableAlias<S, N>

      If name is not a supported single SQL identifier.

      const owner = alias(UserSchema, 'owner');