mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor: remove dead code (#3337)
This commit is contained in:
1 parent
a19002652b
commit
93d1f8af46
1527 files changed
+21170
-73846
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
import type {types} from 'cassandra-driver';
|
||||
|
||||
export type CassandraValue =
|
||||
type CassandraValue =
|
||||
| string
|
||||
| number
|
||||
| bigint
|
||||
|
||||
@@ -26,15 +26,15 @@ interface CassandraClientOptions {
|
||||
logger?: Logger | undefined;
|
||||
}
|
||||
|
||||
export interface CassandraExecuteOptions {
|
||||
interface CassandraExecuteOptions {
|
||||
prepare?: boolean | undefined;
|
||||
}
|
||||
|
||||
export interface CassandraBatchOptions {
|
||||
interface CassandraBatchOptions {
|
||||
prepare?: boolean | undefined;
|
||||
}
|
||||
|
||||
export interface ICassandraClient {
|
||||
interface ICassandraClient {
|
||||
connect(): Promise<void>;
|
||||
shutdown(): Promise<void>;
|
||||
isConnected(): boolean;
|
||||
@@ -183,7 +183,7 @@ export async function shutdownCassandra(): Promise<void> {
|
||||
defaultClientState.client = null;
|
||||
}
|
||||
|
||||
export function getDefaultCassandraClient(): ICassandraClient {
|
||||
function getDefaultCassandraClient(): ICassandraClient {
|
||||
if (defaultClientState.client === null) {
|
||||
throw new Error('Cassandra client is not initialized. Call initCassandra() first.');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user