Represent the NULL keyword in a SQL statement. :class:`.Null` is accessed as a constant via the :func:`.null` function.
| 2813 | |
| 2814 | |
| 2815 | class Null(SingletonConstant, roles.ConstExprRole[None], ColumnElement[None]): |
| 2816 | """Represent the NULL keyword in a SQL statement. |
| 2817 | |
| 2818 | :class:`.Null` is accessed as a constant via the |
| 2819 | :func:`.null` function. |
| 2820 | |
| 2821 | """ |
| 2822 | |
| 2823 | __visit_name__ = "null" |
| 2824 | |
| 2825 | _traverse_internals: _TraverseInternalsType = [] |
| 2826 | _singleton: Null |
| 2827 | |
| 2828 | if not TYPE_CHECKING: |
| 2829 | |
| 2830 | @util.memoized_property |
| 2831 | def type(self) -> TypeEngine[_T]: # noqa: A001 |
| 2832 | return type_api.NULLTYPE |
| 2833 | |
| 2834 | @classmethod |
| 2835 | def _instance(cls) -> Null: |
| 2836 | """Return a constant :class:`.Null` construct.""" |
| 2837 | |
| 2838 | return Null._singleton |
| 2839 | |
| 2840 | |
| 2841 | Null._create_singleton() |
no outgoing calls
no test coverage detected