Skip to content

Commit

Permalink
feat: Add charset custom
Browse files Browse the repository at this point in the history
  • Loading branch information
dliocode committed Jul 4, 2024
1 parent 1c46627 commit c839db0
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 116 deletions.
12 changes: 12 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ declare module 'node-firebird' {
'WIN1258' |
'WIN_1258';

export type CharsetSerialize =
| 'ascii'
| 'utf8'
| 'utf-8'
| 'utf16le'
| 'ucs2'
| 'base64'
| 'latin1'
| 'binary'
| 'hex';

export interface Options {
host?: string;
port?: number;
Expand All @@ -99,6 +110,7 @@ declare module 'node-firebird' {
pageSize?: number;
retryConnectionInterval?: number;
encoding?: SupportedCharacterSet;
charset?: CharsetSerialize;
blobAsText?: boolean; // only affects for blob subtype 1
}

Expand Down
Loading

0 comments on commit c839db0

Please sign in to comment.