Database for Bejibun Framework.
Install the package.
# Using Bun
bun add @bejibun/database
# Using Bejibun
bun ace install @bejibun/databaseThe 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.tsconst 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 tha package.
import Database from "@bejibun/database";
Database.knex();If you find this project helpful and want to support it:
Or you can buy this $BJBN (Bejibun) tokens here.
