diff --git a/src/lib/stores/sdk.ts b/src/lib/stores/sdk.ts
index ec3ca5328..69fd6eb64 100644
--- a/src/lib/stores/sdk.ts
+++ b/src/lib/stores/sdk.ts
@@ -24,6 +24,7 @@ import {
import { Billing } from '../sdk/billing';
import { Sources } from '$lib/sdk/sources';
import { SpecsFunctions } from '$lib/sdk/functionsSpec';
+import { ProjectDBStorage } from '$lib/sdk/usageDatabaseStorage';
const endpoint = VARS.APPWRITE_ENDPOINT ?? `${globalThis?.location?.origin}/v1`;
@@ -45,6 +46,7 @@ const sdkForProject = {
messaging: new Messaging(clientProject),
project: new Project(clientProject),
projectApi: new ProjectApi(clientProject),
+ projectDatabaseStorage: new ProjectDBStorage(clientProject),
storage: new Storage(clientProject),
teams: new Teams(clientProject),
users: new Users(clientProject),
diff --git a/src/routes/console/project-[project]/databases/usage/[[period]]/+page.svelte b/src/routes/console/project-[project]/databases/usage/[[period]]/+page.svelte
index 55b97f174..56c9a0bda 100644
--- a/src/routes/console/project-[project]/databases/usage/[[period]]/+page.svelte
+++ b/src/routes/console/project-[project]/databases/usage/[[period]]/+page.svelte
@@ -6,6 +6,8 @@
export let data: PageData;
$: total = data.databasesTotal;
$: count = data.databases;
+ $: totalStorage = data.databasesStorageTotal;
+ $: countStorage = data.databasesStorage;
Calculated for all your files, deployments, builds and databases. While in beta, only - file storage is counted against your plan limits. + file and database storage is counted against your plan limits.
+ Files - {humanized.value} {humanized.unit}
@@ -312,7 +314,56 @@ class="icon-chart-square-bar text-large" aria-hidden="true" style="font-size: 32px;" /> -No data to show
+No data to show for files storage
++ Databases - + {humanized.value} + {humanized.unit} +
+No data to show for databases storage