Skip to content

Commit

Permalink
2.2.2
Browse files Browse the repository at this point in the history
Fix nested problem and add more drivers
  • Loading branch information
itsusif committed Apr 18, 2024
1 parent 38488a7 commit 41fa877
Show file tree
Hide file tree
Showing 25 changed files with 1,212 additions and 203 deletions.
Binary file modified .DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions dist/Drivers/MySQL.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { PoolOptions } from 'mysql2/promise';
export declare class MySQLDriver {
readonly options: PoolOptions;
private pool;
constructor(options: PoolOptions);
init(table: string): Promise<boolean>;
setRowByKey(table: string, key: string, value: any): Promise<boolean>;
getAllRows(table: string): Promise<any>;
getRowByKey(table: string, key: string): Promise<any>;
deleteRowByKey(table: string, key: string): Promise<number | null>;
deleteAllRows(table: string): Promise<boolean>;
close(): Promise<boolean>;
}
131 changes: 131 additions & 0 deletions dist/Drivers/MySQL.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/Drivers/MySQL.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added dist/Drivers/Postgre.d.ts
Empty file.
2 changes: 2 additions & 0 deletions dist/Drivers/Postgre.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/Drivers/Postgre.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions dist/Drivers/PostgreSQL.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { PoolConfig } from 'pg';
export declare class PostgreSQLDriver {
readonly options: PoolConfig;
private pool;
constructor(options: PoolConfig);
init(table: string): Promise<boolean>;
setRowByKey(table: string, key: string, value: any): Promise<boolean>;
getAllRows(table: string): Promise<any>;
getRowByKey(table: string, key: string): Promise<any>;
deleteRowByKey(table: string, key: string): Promise<number | null>;
deleteAllRows(table: string): Promise<boolean>;
close(): Promise<boolean>;
}
129 changes: 129 additions & 0 deletions dist/Drivers/PostgreSQL.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/Drivers/PostgreSQL.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions dist/Drivers/Redis.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { RedisOptions } from 'ioredis';
export declare class RedisDriver {
readonly options: RedisOptions;
private client;
private isConnect;
constructor(options: RedisOptions);
init(): Promise<boolean>;
setRowByKey(key: string, value: any): Promise<boolean>;
getAllRows(): Promise<any>;
getRowByKey(key: string): Promise<any>;
deleteRowByKey(key: string): Promise<boolean>;
deleteAllRows(): Promise<boolean>;
close(): Promise<boolean>;
}
69 changes: 69 additions & 0 deletions dist/Drivers/Redis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/Drivers/Redis.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 41fa877

Please sign in to comment.