https://github.com/cityssm/node-mssql-system-catalog
Helper functions to query a SQL Server database's system catalog.
https://github.com/cityssm/node-mssql-system-catalog
mssql sql-server system-catalog
Last synced: 4 months ago
JSON representation
Helper functions to query a SQL Server database's system catalog.
- Host: GitHub
- URL: https://github.com/cityssm/node-mssql-system-catalog
- Owner: cityssm
- License: mit
- Created: 2024-10-21T17:36:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-13T20:59:00.000Z (over 1 year ago)
- Last Synced: 2025-09-26T09:52:08.241Z (9 months ago)
- Topics: mssql, sql-server, system-catalog
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@cityssm/mssql-system-catalog
- Size: 395 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# node-mssql-system-catalog
[](https://www.npmjs.com/package/@cityssm/mssql-system-catalog)
[](https://codeclimate.com/github/cityssm/node-mssql-system-catalog/maintainability)
[](https://codecov.io/gh/cityssm/node-mssql-system-catalog)
[](https://github.com/cityssm/node-mssql-system-catalog/actions/workflows/coverage.yml)
[](https://app.deepsource.com/gh/cityssm/node-mssql-system-catalog/)
Helper functions to query a SQL Server database's system catalog.
- Uses a `ConnectionPool` object from the [node-mssql](https://www.npmjs.com/package/mssql) package,
or from the [@cityssm/mssql-multi-pool](https://www.npmjs.com/package/@cityssm/mssql-multi-pool) package.
- TypeScript-friendly responses.
## Installation
```sh
npm install @cityssm/mssql-system-catalog
```
## Usage
```javascript
import { getTables } from '@cityssm/mssql-system-catalog'
import mssql from 'mssql'
const pool = await mssql.connect({
/* mssql config settings */
})
const databaseTables = await getTables(pool)
const databaseViews = await getViews(pool)
```
## Related Projects
[@cityssm/mssql-multi-pool](https://www.npmjs.com/package/@cityssm/mssql-multi-pool)
A simple way to manage connections to multiple SQL Server databases using the Node.js Tedious package ([node-mssql](https://www.npmjs.com/package/mssql)).