neondb
Version:
create a claimable Neon database in seconds!
25 lines (23 loc) • 730 B
TypeScript
type SqlScript = {
type: "sql-script";
path: string;
};
/**
* Parameters for configuring Instagres database connection
* @param {string} dotEnvFile - Path to the .env file where the connection string will be saved
* @param {string} dotEnvKey - Environment variable name to store the connection string
* @param {string} referrer - referrer name for tracking
* @param {SqlScript} seed - Path to the `.sql` file to be pushed to the database
*/
interface InstantNeonParams {
dotEnvFile?: string;
dotEnvKey?: string;
referrer?: string;
seed?: SqlScript;
}
interface Defaults {
dotEnvPath: string;
dotEnvKey: string;
seed?: SqlScript;
}
export type { Defaults, InstantNeonParams, SqlScript };