IUserDataSource over the application's users table.
The audience service needs one to run at all — its init-key throws without a
:user-data-source — and the protocol had no implementation anywhere, so the
module could not boot and no application ever activated it (BOU-419).
Queried by table name rather than through the user module: audience depends
on no other Wagoe library, and reaching into wagoe.user.shell.* would be
the cross-module coupling bb check:ports exists to prevent. :table is
configurable for an application whose users live elsewhere.
IUserDataSource over the application's users table. The audience service needs one to run at all — its init-key throws without a `:user-data-source` — and the protocol had no implementation anywhere, so the module could not boot and no application ever activated it (BOU-419). Queried by table name rather than through the user module: audience depends on no other Wagoe library, and reaching into `wagoe.user.shell.*` would be the cross-module coupling `bb check:ports` exists to prevent. `:table` is configurable for an application whose users live elsewhere.
(create-sql-user-data-source datasource)(create-sql-user-data-source datasource table)(create-sql-user-data-source datasource table field-mapping)An IUserDataSource reading table (default :users) from datasource.
field-mapping renames filter columns that this table spells differently;
default-field-mapping covers the framework's own users table.
An IUserDataSource reading `table` (default `:users`) from `datasource`. `field-mapping` renames filter columns that this table spells differently; `default-field-mapping` covers the framework's own users table.
Filter column names that differ from the framework's users table.
filter->sql for :last-active emits last_active_at, a column no Wagoe
users table has — it records last_login — so that documented filter failed
with a missing-column error against the source this module ships (BOU-419
review). Override with :field-mapping for a schema that spells it
differently again.
Filter column names that differ from the framework's `users` table. `filter->sql` for `:last-active` emits `last_active_at`, a column no Wagoe users table has — it records `last_login` — so that documented filter failed with a missing-column error against the source this module ships (BOU-419 review). Override with `:field-mapping` for a schema that spells it differently again.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |