@mastra/mssql
Microsoft SQL Server implementation for Mastra, providing general storage capabilities with connection pooling and transaction support.
Installation
npm install @mastra/mssql
Usage
Storage
Basic Configuration
MSSQLStore supports multiple connection methods:
1. Connection String (Recommended)
import { MSSQLStore } from '@mastra/mssql';
const store = new MSSQLStore({
id: 'mssql-storage',
connectionString:
'Server=localhost,1433;Database=mastra;User Id=sa;Password=yourPassword;Encrypt=true;TrustServerCertificate=true',
});
Documentation
Changelog
See the package changelog for version history and release notes.
Support
We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.