Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [Session

Protect Your Website Today


PHP Manual || mysql_xdevapi\Session

(No version information available, might only be in Git)

Session::createSchemaCreate new schema

Description

public mysql_xdevapi\Session::createSchema ( string $schema_name ) : mysql_xdevapi\Schema

Creates a new schema.

Parameters

schema_name

Name of the schema to create.

Return Values

A Schema object on success, and emits an exception on failure.

Examples

Example #1 mysql_xdevapi\Session::createSchema() example

<?php
$uri  
'mysqlx://happyuser:[email protected]:33060/';
$sess mysql_xdevapi\getSession($uri);

try {

    if (
$schema $sess->createSchema('fruit')) {
        echo 
"Info: I created a schema named 'fruit'\n";
    }
    
} catch (
Exception $e) {

   echo 
$e->getMessage();

}
?>

The above example will output something similar to:

Info: I created a schema named 'fruit'


PHP Manual || mysql_xdevapi\Session