sea-orm icon indicating copy to clipboard operation
sea-orm copied to clipboard

Cannot run sea-orm-cli with feature codegen without sqlite as a dependency

Open ThomasConrad opened this issue 1 year ago • 1 comments

Description

I cannot run sea-orm-cli with feature codegen without sqlite as a dependency. I do not want to pull in sqlite, I am using codegen with postgres. There is no way to remove the dependency.

Steps to Reproduce

Add sea-orm-cli to any crate with feature codegen.

Look at cargo.lock

Expected Behavior

I want to be able to deselect the sqlx-sqlite dependency.

It stems from the feature dependency on sea-schema:

codegen (default) sea-orm-codegen (default) sea-schema/sqlx-all (default)

ThomasConrad avatar Aug 07 '24 12:08 ThomasConrad

Yeah, I've already encountered this same issue: #2225

Expurple avatar Aug 08 '24 06:08 Expurple

#2367 has been merged today. Is your issue resolved on the current master (88f4bf1)?

You need to disable default-features on sea-orm-cli and activate only the needed DB backends

Expurple avatar May 21 '25 11:05 Expurple

It works, amazing

ThomasConrad avatar May 22 '25 07:05 ThomasConrad