asString method

Expr<String> asString()

Cast as string.

In SQL often translates to CAST(value AS TEXT).

This is generally safe and won't cause runtime errors.

Example:

  • 12345 -> '12345'

Implementation

Expr<String> asString() => CastExpression._(this, ColumnType.text);