Skip to content

Commit

Permalink
addind mysql_xdevapi
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecc committed Aug 9, 2018
1 parent 97d03e7 commit 030e2e7
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions mysql_xdevapi/mysql_xdevapi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?php
/**
* Start of mysql_xdevapi extension stubs v.0.1
* @link http://php.net/manual/en/book.mysql-xdevapi.php
* @package mysql_xdevapi
*/
namespace mysql_xdevapi;

/**
* @link http://php.net/manual/en/function.mysql-xdevapi-getsession.php
* @param string $uri The URI to the MySQL server, such as mysqlx://user:password@host.
* @return \mysql_xdevapi\Session
*/
function getSession($uri) {}


/**
* Class Collection
* @package mysql_xdevapi
*/
class Collection {

/**
* Adds a document to the collection
* @link http://php.net/manual/en/mysql-xdevapi-collection.add.php
* @param mixed $document
* @return \mysql_xdevapi\CollectionAdd
*/
public function add($document) {}
}

/**
* Class Session
* @package mysql_xdevapi
*/
class Session {
/**
* Get the schema
* @link http://php.net/manual/en/mysql-xdevapi-session.getschema.php
* @param string $schema_name name of the schema
* @return \mysql_xdevapi\Schema
*/
public function getSchema($schema_name) {}

/**
* Creates a the schema
* @link http://php.net/manual/en/mysql-xdevapi-session.createschema.php
* @param string $schema_name name of the schema
* @return \mysql_xdevapi\Schema
* @throws \mysql_xdevapi\Exception
*/
public function createSchema($schema_name) {}

}

/**
* Class Schema
* @package mysql_xdevapi
*/
class Schema {
/**
* Get collection from schema
* @link http://php.net/manual/en/mysql-xdevapi-schema.getcollection.php
* @param string $name name of the collection
* @return \mysql_xdevapi\Collection
*/
public function getCollection($name) {}
}

/**
* Class Exception
* @package mysql_xdevapi
*/
class Exception extends \RuntimeException implements \Throwable {

}

/**
* Class Result
* @package mysql_xdevapi
*/
class Result {

}

/**
* Class CollectionAdd
* @link http://php.net/manual/en/class.mysql-xdevapi-collectionadd.php
* @package mysql_xdevapi
*/
class CollectionAdd {

/**
* Execute the statement
* @link http://php.net/manual/en/mysql-xdevapi-collectionadd.execute.php
* @return \mysql_xdevapi\Result
*/
public function execute() {}
}

0 comments on commit 030e2e7

Please sign in to comment.