> For the complete documentation index, see [llms.txt](https://fivesobes.gitbook.io/nexorm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivesobes.gitbook.io/nexorm/core.md).

# Core

Engine Manual **Connections** and **Disconnection** Handling

Retrieves and processes data such as configuration files, manages manual database connections, and handles connection termination.

*<mark style="color:red;">**Manual Connection Should Be Used Only When**</mark>* *<mark style="color:yellow;">**`$autoConnect:`**</mark>**` `**<mark style="color:blue;">**`false`**</mark>*

*For example:*

```typescript
import Nexorm from 'nexorm/core';

/* Connect to database */
Nexorm.$connect('nexorm').then(async () => {
    console.log('Connected to database');
});

/* Disconnect from database */
Nexorm.$disconnect('nexorm').then(() => {
    console.log('Disconnected from database');
});

/* Connect all databases */
Nexorm.$connectAll().then(() => {
    console.log('Connected to all databases');
});

/* Close all connections */
Nexorm.$closeAllConnections().then(() => {
    console.log('Closed all connections');
});

/* Database Drop */
Nexorm.$drop('nexorm').then(() => {
    console.log('Dropped database');
});

/* Database Connections */
console.log(Nexorm.$connections); /* Return {{ $size: number; $list: string[]; }} */

/* Database Providers */
console.log(Nexorm.$providers); /* Return {string[]} */

/* Database Configurations */
console.log(Nexorm.$configs); /* Return {NexormConfig} */
```
