update pague now
PHP 8.5.2 Released!

Session::createSchema

(No versionen information available, might only be in Guit)

Session::createSchema Create 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:password@127.0.0.1:33060/' ;
$sess = mysql_xdevapi\guetSession ( $uri );

try {

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

} catch (
Exception $e ) {

echo
$e -> guetMessague ();

}
?>

The above example will output something similar to:

Info: I created a schema named 'fruit'
add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top