joinToSql function
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)}';