finki-main
main
|
Last change
on this file since 33517cc was 62b2964, checked in by Klimentina Efremova <klimentina08642@…>, 2 weeks ago |
|
Project Handcraft Marketplace
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | type ParseOpts = {
|
|---|
| 2 | name?: string;
|
|---|
| 3 | types?: number[];
|
|---|
| 4 | text: string;
|
|---|
| 5 | };
|
|---|
| 6 | type ValueMapper = (param: any, index: number) => any;
|
|---|
| 7 | type BindOpts = {
|
|---|
| 8 | portal?: string;
|
|---|
| 9 | binary?: boolean;
|
|---|
| 10 | statement?: string;
|
|---|
| 11 | values?: any[];
|
|---|
| 12 | valueMapper?: ValueMapper;
|
|---|
| 13 | };
|
|---|
| 14 | type ExecOpts = {
|
|---|
| 15 | portal?: string;
|
|---|
| 16 | rows?: number;
|
|---|
| 17 | };
|
|---|
| 18 | type PortalOpts = {
|
|---|
| 19 | type: 'S' | 'P';
|
|---|
| 20 | name?: string;
|
|---|
| 21 | };
|
|---|
| 22 | declare const serialize: {
|
|---|
| 23 | startup: (opts: Record<string, string>) => Buffer;
|
|---|
| 24 | password: (password: string) => Buffer;
|
|---|
| 25 | requestSsl: () => Buffer;
|
|---|
| 26 | sendSASLInitialResponseMessage: (mechanism: string, initialResponse: string) => Buffer;
|
|---|
| 27 | sendSCRAMClientFinalMessage: (additionalData: string) => Buffer;
|
|---|
| 28 | query: (text: string) => Buffer;
|
|---|
| 29 | parse: (query: ParseOpts) => Buffer;
|
|---|
| 30 | bind: (config?: BindOpts) => Buffer;
|
|---|
| 31 | execute: (config?: ExecOpts) => Buffer;
|
|---|
| 32 | describe: (msg: PortalOpts) => Buffer;
|
|---|
| 33 | close: (msg: PortalOpts) => Buffer;
|
|---|
| 34 | flush: () => Buffer<ArrayBufferLike>;
|
|---|
| 35 | sync: () => Buffer<ArrayBufferLike>;
|
|---|
| 36 | end: () => Buffer<ArrayBufferLike>;
|
|---|
| 37 | copyData: (chunk: Buffer) => Buffer;
|
|---|
| 38 | copyDone: () => Buffer<ArrayBufferLike>;
|
|---|
| 39 | copyFail: (message: string) => Buffer;
|
|---|
| 40 | cancel: (processID: number, secretKey: number) => Buffer;
|
|---|
| 41 | };
|
|---|
| 42 | export { serialize };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.