mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-05-02 04:53:07 +00:00
fix(postgres): import under feature flag (#2500)
This commit is contained in:
parent
70b7224336
commit
8b45204fda
@ -15,7 +15,6 @@ import
|
|||||||
../../common/error_handling,
|
../../common/error_handling,
|
||||||
./sqlite_driver,
|
./sqlite_driver,
|
||||||
./sqlite_driver/migrations as archive_driver_sqlite_migrations,
|
./sqlite_driver/migrations as archive_driver_sqlite_migrations,
|
||||||
./postgres_driver/migrations as archive_postgres_driver_migrations,
|
|
||||||
./queue_driver
|
./queue_driver
|
||||||
|
|
||||||
export
|
export
|
||||||
@ -23,7 +22,9 @@ export
|
|||||||
queue_driver
|
queue_driver
|
||||||
|
|
||||||
when defined(postgres):
|
when defined(postgres):
|
||||||
import ./postgres_driver ## This import adds dependency with an external libpq library
|
import ## These imports add dependency with an external libpq library
|
||||||
|
./postgres_driver/migrations as archive_postgres_driver_migrations,
|
||||||
|
./postgres_driver
|
||||||
export postgres_driver
|
export postgres_driver
|
||||||
|
|
||||||
proc new*(T: type ArchiveDriver,
|
proc new*(T: type ArchiveDriver,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user