axiodb
Version:
The Pure JavaScript Alternative to SQLite. Embedded NoSQL database for Node.js with MongoDB-style queries, zero native dependencies, built-in InMemoryCache, and web GUI. Perfect for desktop apps, CLI tools, and embedded systems. No compilation, no platfor
42 lines (41 loc) • 1.1 kB
TypeScript
export declare enum ServerKeys {
PORT = 27018,
LOCALHOST = "127.0.1",
DEFAULT_KEY_EXPIRE = "24h",
DEFAULT_KEY_ISSUER = "AxioDB Server",
DEFAULT_KEY_AUDIENCE = "AxioDB Client",
DEFAULT_KEY_REASON = "For Transacting with AxioDB Server",
DEFAULT_KEY_TIMESTAMP,
DEFAULT_KEY_ROUNDS = 1
}
export declare const CORS_CONFIG: {
ORIGIN: string;
METHODS: string[];
ALLOWED_HEADERS: string[];
EXPOSED_HEADERS: string[];
MAX_AGE: number;
ALLOW_CREDENTIALS: boolean;
};
export declare const staticPath: string;
interface MainRoutesInterface {
method: "GET" | "POST" | "PUT" | "DELETE";
path: string;
description: string;
payload?: Record<string, any>;
}
interface RouteGroupInterface {
groupName?: string;
description: string;
Paths: MainRoutesInterface[];
}
export declare const AvailableRoutes: RouteGroupInterface[];
type AuthorInfoType = {
name: string;
Designation: string;
Country: string;
Email: string;
LinkedIn: string;
github: string;
};
export declare const AuthorInfo: AuthorInfoType;
export {};