RedBeanPHP\Facade::nuke PHP Method

nuke() public static method

This will remove all schema structures from the database. Only works in fluid mode. Be careful with this method.
public static nuke ( ) : void
return void
    public static function nuke()
    {
        if (!self::$redbean->isFrozen()) {
            self::$writer->wipeAll();
        }
    }

Usage Example

Example #1
0
 /**
  * Tests R::getInsertID convenience method.
  *
  * @return void
  */
 public function testGetInsertID()
 {
     R::nuke();
     $id = R::store(R::dispense('book'));
     $id2 = R::getInsertID();
     asrt($id, $id2);
 }
All Usage Examples Of RedBeanPHP\Facade::nuke