Menu

## Database extends KBase
in package

Database.php : 18

This class provides methods for creating and managing database connections.

##### Tags

see
  https://www.kotchasan.com/

### Table of Contents

$cfg : object
  Config class instance.
$request : Request
  Server request class instance.
$instances : array<string|int, mixed>
  Database connection instances.
create() : Driver
  Create Database Connection.

### Properties

#### $cfg

KBase.php : 26

Config class instance.

`protected static object $cfg`

#### $request

KBase.php : 33

Server request class instance.

`protected static Request $request`

#### $instances

Database.php : 25

Database connection instances.

`private static array<string|int, mixed> $instances = []`

### Methods

#### create()

Database.php : 34

Create Database Connection.

`public static create([mixed $name = 'mysql' ]) : Driver`

##### Parameters

$name : mixed = 'mysql'

  The name of the connection specified in the config or an array of database settings.

##### Return values

Driver —

The database driver instance.

## Search results