# @types/sqlanywhere

> TypeScript definitions for sqlanywhere

Latest version **1.0.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/sqlanywhere
pnpm add @types/sqlanywhere
yarn add @types/sqlanywhere
bun add @types/sqlanywhere
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-11-07 |
| First published | 2018-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51405 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/sqlanywhere
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqlanywhere
- npm.io page: https://npm.io/package/@types/sqlanywhere

## Recent versions

- 1.0.6 (latest) — 2023-11-07
- 1.0.3 (ts3.6) — 2021-07-06
- 1.0.2 (ts2.0) — 2019-03-12
- 1.0.5 — 2023-10-18
- 1.0.4 — 2023-09-25
- 1.0.1 — 2019-02-01
- 1.0.0 — 2018-08-31

## README

# Installation
> `npm install --save @types/sqlanywhere`

# Summary
This package contains type definitions for sqlanywhere (https://github.com/sqlanywhere/node-sqlanywhere).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqlanywhere.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqlanywhere/index.d.ts)
````ts
export function createConnection(): SybaseConnection;

export interface SybaseConnection {
    connect(
        params: ConnectionParameters,
        cb: (err: Error | undefined) => void,
    ): void;
    close(cb: (err?: Error) => void): void;
    disconnect(cb: (err?: Error) => void): void;
    connected(): boolean;
    exec(query: string, cb: (err: Error | undefined, result: any) => void): void;
    exec(
        query: string,
        placeholders: any[],
        cb: (err: Error | undefined, result: any) => void,
    ): void;
    prepare(
        query: string,
        cb: (err: Error | undefined, stmt: Statement) => void,
    ): void;
    prepare(query: string): Statement;
    commit(cb: (err: Error | undefined) => void): void;
    rollback(cb: (err: Error | undefined) => void): void;
}

export interface ConnectionParameters {
    Server: string;
    UserId: string;
    DatabaseFile?: string | undefined;
    AutoStart?: string | undefined;
    Password: string;
    Host?: string | undefined;
}

export interface Statement {
    exec(args: any[], cb: (err: Error | undefined, rows: any[]) => void): void;
    exec(args: any[]): any[];
    getMoreResults(): any[];
    drop(cb: (err: Error | undefined) => void): void;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Peter Keuter](https://github.com/pkeuter).

---
_Source: https://npm.io/package/@types/sqlanywhere · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
