Search
ctrl/
Ask AI
Light
Dark
System

Future Behavior

This section describes the DDL commands pertaining to future.

Enable a particular future behavior for the current schema.

create future FutureBehavior ";"

There’s a corresponding SDL declaration for enabling a future behavior, which is the recommended way of doing this.

The command create future enables the specified future behavior for the current branch.

Enable simpler non-recursive access policy behavior non-recursive access policy for the current schema:

Copy
create future nonrecursive_access_policies;

Stop importing future behavior prior to the EdgeDB version in which it appears.

drop future FutureBehavior ";"

The command drop future disables a currently active future behavior for the current branch. However, this is only possible for versions of EdgeDB when the behavior in question is not officially introduced. Once a particular behavior is introduced as the standard behavior in an EdgeDB release, it cannot be disabled. Running this command will simply denote that no special action is needed to enable it in this case.

Disable simpler non-recursive access policy behavior non-recursive access policy for the current schema. This will make access policy restrictions apply to the expressions defining other access policies:

Copy
drop future nonrecursive_access_policies;

Once EdgeDB 3.0 is released there is no more need for enabling non-recursive access policy behavior anymore. So the above command will simply indicate that the database no longer does anything non-standard.