gws.plugin.postgres.finder¶
PostgreSQL finder.
Source code: gws.plugin.postgres.finder
Module Contents¶
- class gws.plugin.postgres.finder.Config¶
Bases:
gws.base.search.finder.ConfigSearch in a PostgreSQL table.
- class gws.plugin.postgres.finder.Object¶
Bases:
gws.base.search.finder.ObjectFinder that searches a PostgreSQL table through its
postgresmodels.- db: gws.DatabaseProvider¶
Database provider.
- configure()¶
- configure_models()¶
- configure_provider()¶
Set the database provider from
dbUid, or the firstpostgresprovider.- Returns:
Trueif a provider was set.- Raises:
gws.Error – If no provider is found.
- create_model(cfg)¶
Create a
postgresmodel for the table of the finder.The model gets the database provider, the table and the
sqlFilterof the finder.- Parameters:
cfg – Model configuration, or
Nonefor the default model.- Returns:
The model object.