describe() public method

Describe database, create if it does not exist.
public describe ( string $entity, array $schema = [], array $meta = [] ) : lithium\data\Schema
$entity string
$schema array Any schema data pre-defined by the model.
$meta array
return lithium\data\Schema
Beispiel #1
0
 public function testDescribe()
 {
     $couchdb = new CouchDb($this->_testConfig);
     $this->expectException('/companies is not available/');
     $result = $couchdb->describe('companies');
     $this->assertNull($result);
 }
Beispiel #2
0
 public function testDescribe()
 {
     $couchdb = new CouchDb($this->_testConfig);
     $this->assertNull($couchdb->describe('companies'));
 }
Beispiel #3
0
 public function testDescribe()
 {
     $couchdb = new CouchDb($this->_testConfig);
     $this->assertInternalType('object', $couchdb->describe('companies'));
 }
 public function testDescribe()
 {
     $couchdb = new CouchDb($this->_testConfig);
     $result = $couchdb->describe('companies');
 }