# dk-typeorm-spcall

> Aim: Providing easy functionality for call SPs using typescript mainly for nestjs

Latest version **1.0.6** (published 2022-11-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install dk-typeorm-spcall
pnpm add dk-typeorm-spcall
yarn add dk-typeorm-spcall
bun add dk-typeorm-spcall
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2022-11-17 |
| First published | 2022-11-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Dhaval Kamaliya |
| Maintainers | dhaval.kamaliya |
| Keywords | typeorm, mssql, storage procedure, dk-typeorm-spcall |

## Links

- npm: https://www.npmjs.com/package/dk-typeorm-spcall
- Repository: https://github.com/KamaliyaDhawal/dk-typeorm-spcall
- Homepage: https://github.com/KamaliyaDhawal/dk-typeorm-spcall#readme
- Issues: https://github.com/KamaliyaDhawal/dk-typeorm-spcall/issues
- npm.io page: https://npm.io/package/dk-typeorm-spcall

## Dependencies (2)

- [mssql](https://npm.io/package/mssql.md) ^7.3.5
- [typeorm](https://npm.io/package/typeorm.md) ^0.3.10

## Alternatives

- [@libsql/sqlite3](https://npm.io/package/@libsql/sqlite3.md) — 39.8K weekly downloads
- [@fortemi/core](https://npm.io/package/@fortemi/core.md) — 461 weekly downloads
- [cdb-converter](https://npm.io/package/cdb-converter.md) — 341 weekly downloads
- [@uplo/adapter-prisma](https://npm.io/package/@uplo/adapter-prisma.md) — 75 weekly downloads
- [typeorm-aios](https://npm.io/package/typeorm-aios.md) — 30 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2022-11-17
- 1.0.5 — 2022-11-17
- 1.0.4 — 2022-11-17
- 1.0.3 — 2022-11-17
- 1.0.2 — 2022-11-17
- 1.0.1 — 2022-11-17
- 1.0.0 — 2022-11-17

## README

# dk-typeorm-spcall

AIM: providing easy functionality for call SPs using typescript mainly for nestjs

## Installation

Install package

```bash
npm i --save dk-typeorm-spcall
```

## Configuration
In your module file import provider

```typescript
import { SpCall } from "dk-typeorm-spcall";
```

In your @Module add SpCall as a providers 

```typescript
@Module({
    providers: [SpCall]
})
```

## Usage

```typescript
import { SpCall } from "dk-typeorm-spcall"; // for function call
import { Connection } from "typeorm";

// Inject the dependancy

constructor(
    private spCall: SpCall,
    private connection: Connection,
)

// create your parameters object

const parameters = {
    field1: "value1",
    field2: "value2"
}

const result = await this.spCall.CallMsSqlSp(connection, "spName", parameters);
```
Here "spName" is the name of storage procedure you want to call and parameters is optional if your storage procedure have any parameters then pass as a argument



## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

## Note
currently support for only MsSql database, we will provide support for other databases very soon.

## Thanks and Happy Coding.... 😊

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