vapor / fluent

Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
https://docs.vapor.codes/4.0/fluent/overview/
MIT License
1.32k stars 172 forks source link

Does Fluent need to depend on Vapor itself? #749

Closed olegbragin closed 2 years ago

olegbragin commented 2 years ago

Fluent Package.swift contains a reference to Vapor. Is it really necessary? I'm currently implementing a simple app with multi-package structure. For instance, one of the packages works with PostgresQL db to make CRUD operations. I was hoping to do it with Fluent and corresponding Fluent drivers. But when I reference Fluent, SPM also resolves the whole package graph, including everything related to Vapor. And since I want to keep my packages rather clean from unnecessary dependencies, I wonder if it's possible to reference only Fluent without Vapor.

0xTim commented 2 years ago

@olegbragin you're looking for FluentKit - that is the package that contains all the DB logic and actual ORM stuff. Fluent is the package that glues FluentKit and Vapor together

olegbragin commented 2 years ago

Wow, thanks! @0xTim, will read the Package.swift better next time!