genRandomUuid function

Expression<UuidValue> genRandomUuid()

Calls the gen_random_uuid function in postgres.

Implementation

Expression<UuidValue> genRandomUuid() {
  return FunctionCallExpression(
    'gen_random_uuid',
    [],
  ).dartCast(customType: PgTypes.uuid);
}