joinToSql function

String joinToSql(
  1. Join join, {
  2. Formatter<JoinType> typeFormatter = defaultJoinTypeFormatter,
  3. Formatter<String> tableFormatter = identity,
  4. Formatter<WhereClauseGroup> onFormatter = defaultWhereFormatter,
})

Converts a Join to a SQL string.

Implementation

String joinToSql(
  Join join, {
  Formatter<JoinType> typeFormatter = defaultJoinTypeFormatter,
  Formatter<String> tableFormatter = identity,
  Formatter<WhereClauseGroup> onFormatter = defaultWhereFormatter,
}) =>
    ' ${typeFormatter(join.type)} ${tableFormatter(join.table)} ON ${onFormatter(join.on)}';