This commit is contained in:
commit
421043c9b5
67 changed files with 3455 additions and 0 deletions
25
types/config/database.ts
Normal file
25
types/config/database.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
type CassandraConfig = {
|
||||
host: string;
|
||||
port: number;
|
||||
keyspace: string;
|
||||
username: string;
|
||||
password: string;
|
||||
datacenter: string;
|
||||
contactPoints: string[];
|
||||
authEnabled: boolean;
|
||||
};
|
||||
|
||||
type SqlMigration = {
|
||||
id: string;
|
||||
name: string;
|
||||
upSql: string;
|
||||
downSql?: string | undefined;
|
||||
};
|
||||
|
||||
type ConnectionOptions = {
|
||||
withKeyspace?: boolean;
|
||||
timeout?: number;
|
||||
logging?: boolean;
|
||||
};
|
||||
|
||||
export type { CassandraConfig, SqlMigration, ConnectionOptions };
|
Loading…
Add table
Add a link
Reference in a new issue