Skip to content

Repository files navigation

Bejibun

GitHub top language NPM Downloads GitHub issues GitHub GitHub release (latest by date including pre-releases)

Database for Bejibun

Database for Bejibun Framework.

Usage

Installation

Install the package.

# Using Bun
bun add @bejibun/database

# Using Bejibun
bun ace install @bejibun/database

Configuration

The configuration file automatically executed if you are using ace.

Or

Add database.ts inside config directory on your project if doesn't exist.

config/database.ts
const config: Record<string, any> = {
    default: "local",

    connections: {
        local: {
            host: "127.0.0.1",
            port: 6379,
            password: "",
            database: 0,
            maxRetries: 10
        }
    }
};

export default config;

You can pass the value with environment variables.

How to Use

How to use tha package.

import Database from "@bejibun/database";

Database.knex();

☕ Support / Donate

If you find this project helpful and want to support it:

Donate

Or you can buy this $BJBN (Bejibun) tokens here.

About

Database for Bejibun Framework

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages