[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / databaseNotifications

# Function: databaseNotifications()

> **databaseNotifications**(`options?`): [`NotificationProvider`](../interfaces/NotificationProvider)

Defined in: [admin/src/databaseNotifications.ts:87](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/databaseNotifications.ts#L87)

Build a [NotificationProvider](../interfaces/NotificationProvider) reading from the notifications table.

Every method fails soft: a missing table, an unconfigured database or a
signed-out user yields an empty bell rather than a broken panel, because a
notification centre is never worth taking the page down for.

## Parameters

### options?

[`DatabaseNotificationOptions`](../interfaces/DatabaseNotificationOptions) = `{}`

## Returns

[`NotificationProvider`](../interfaces/NotificationProvider)
