View Source Electric.Plug.TenantUtils (electric v0.8.0)

Shared tenant-related plug functions used across Electric plugs.

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Load an appropriate tenant configuration into assigns based on the database_id query parameter.

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Load an appropriate tenant configuration into assigns based on the database_id query parameter.