Skip to content

Making "AS" in table writer more flexible due to dialect? #66

@xafero

Description

@xafero

I have two questions:

  • Could one make the methods in SqlTextWriter virtual? (WriteSql, WriteCommaSpaced, WriteDelimited, WriteList, WriteConstraint)
  • Could one change the TableFactor to make "AS" writing optional or due to dialect? My DB does not allow for it in table alias.
protected void WriteAlias(SqlTextWriter writer)
    {
      if (Alias != null)
      {
           // NOT ALLOWED IN MY DB dialect: writer.WriteSql($" AS {Alias}");

	   // Somehow decide or delegate to dialect?
           writer.WriteSql($" {Alias}");
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions