packages/sql-semantics-postgres/src/Statement/Catalog/Cast/TransformDirection.php
1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\PostgreSql\Statement\Catalog\Cast;
6
7/**
8 * The direction of a transform function: from the SQL type to the language, or back.
9 *
10 * Source: https://www.postgresql.org/docs/17/sql-createtransform.html.
11 *
12 * @visibility public
13 * @example Spelling the direction into the language
14 * \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Cast\TransformDirection::FromSql->value // => 'FROM SQL'
15 */
16enum TransformDirection: string
17{
18 case FromSql = 'FROM SQL';
19 case ToSql = 'TO SQL';
20}
21