Target#
- dace_query.target.target.Target: TargetClass = <dace_query.target.target.TargetClass object>#
This is a singleton instance of the
TargetClassclass.To use it, simply import it :
from dace_query.target import Target
- class dace_query.target.target.TargetClass(dace_instance=None)#
Bases:
objectThe target class. Use to retrieve data from the target module.
Tip
A target instance is already provided, to use it:
from dace_query.target import Target
- query_database(limit=10000, filters=None, sort=None, output_format=None)#
Query the target database to retrieve data in the chosen format.
Filters and sorting order can be applied to the query via named arguments (see Filtering and sorting).
All available formats are defined in this section (see Output formats).
- Parameters:
limit (Optional[int]) – Maximum number of rows to return
filters (Optional[dict]) – Filters to apply to the query
sort (Optional[dict]) – Sort order to apply to the query
output_format (Optional[str]) – Type of data returns
- Returns:
The desired data in the chosen output format
- Return type:
dict[str, ndarray] or DataFrame or Table or dict
Getting all data from the target database
from dace_query.target import Target values = Target.query_database()