call method

SupaColumnBase<B> call(
  1. Set<SupaColumnBase<A>> columns
)

Returns a SupaColumnBase with the correct query pattern to fetch the given columns from the joined table.

Implementation

SupaColumnBase<B> call(Set<SupaColumnBase<A>> columns) => SupaColumnBase<B>(
      queryPattern: columns.isNotEmpty
          ? '''${_generateQueryPatternPrefix(tableName, joiningColumn, joinType, foreignKey)}(${columns.map((c) => c.queryPattern).join(', ')})'''
          : queryPattern,
    );