putyourlightson / craft-sprig

A reactive Twig component framework for Craft CMS.
https://putyourlightson.com/plugins/sprig
MIT License
125 stars 9 forks source link

Using Sprig with non craft dataset tables #296

Closed playcraftSystems closed 1 year ago

playcraftSystems commented 1 year ago

Hello,

I wasn't able to find any examples of using Sprig with a database table not supplied by Craft. Is this possible? My use case is that we have several databases not related to Craft CMS, and our commerce items are located in a MS SQL Server.

bencroker commented 1 year ago

Sprig doesn't care what database you use – if it can be done via Twig or PHP then it can be done with Sprig.