Documentation
Search
Browse pages and API symbols. All links work without JavaScript.Concepts
Pipeline overview
Registries
Manifests
Rulesets
Runtime EDB
Solving
Querying
Explanations
Event windows
C API
Overview
Domain
- domain_register() function
- DOMAIN_NO_ATOMS() macro
- DOMAIN_WITH_ATOMS() macro
- EDB() macro
- EDB_QUERY() macro
- IDB() macro
- IDB_QUERY() macro
- POLICY_FACT() macro
- POLICY_FACT_QUERY() macro
- domain_t struct
- predicate_flags_t enum
- predicate_t struct
Policy
- PUBLIC_ALLOW_NONE constant
- PUBLIC_ALLOW_TEST_ONLY constant
- PUBLIC_ALLOW_UNDECLARED_POLICY_ATOMS constant
- PUBLIC_FINGERPRINT_BYTES constant
- PUBLIC_MAX_POLICY_ATOM_BYTES constant
- PUBLIC_MAX_POLICY_ATOMS constant
- policy_count() function
- policy_fingerprint() function
- policy_free() function
- policy_id() function
- policy_load_inline() function
- policy_load_manifest() function
- policy_load_manifest_buffer() function
- policy_load_manifest_text() function
- policy_reads_predicate() function
- policy_stat_get() function
- policy_bundle_entry_t struct
- policy_stat_t enum
- policy_t handle
Input EDB
- input_edb_add_fact() function
- input_edb_add_facts() function
- input_edb_clear() function
- input_edb_count() function
- input_edb_create() function
- input_edb_create_with_capacity() function
- input_edb_free() function
- input_edb_init() function
- input_edb_storage_requirements() function
- input_edb_text_usage() function
- input_edb_view() function
- ADD_FACT() macro
- ADD_FACTS() macro
- BOOL() macro
- FACT() macro
- SYMBOL() macro
- fact_t struct
- input_edb_t handle
- value_kind_t enum
- value_t struct
Session
- CAP_AGGREGATES constant
- CAP_ALL constant
- CAP_ARITHMETIC constant
- CAP_COMPARISONS constant
- CAP_EXPLAIN_FALSE constant
- CAP_EXPLAIN_TRUE constant
- CAP_FILTERS constant
- CAP_LANGUAGE constant
- CAP_MAX constant
- CAP_MIN constant
- CAP_NEGATION constant
- CAP_POSITIVE constant
- CAP_SUM constant
- CAP_WORK_LIMIT constant
- session_config_create() function
- session_config_free() function
- session_config_get_required_capabilities() function
- session_config_get_work_limit() function
- session_config_set_explanation_storage() function
- session_config_set_explanation_workspace() function
- session_config_set_required_capabilities() function
- session_config_set_work_limit() function
- session_create() function
- session_create_configured() function
- session_execution_fingerprint() function
- session_explanation_storage_bound() function
- session_fingerprint() function
- session_free() function
- session_solve() function
- session_solve_edb() function
- session_config_t handle
- session_t handle
Session inputs
- INPUT_CONTRACT_VERSION constant
- INPUT_OPTIONS_INIT macro
- session_inputs_apply() function
- session_inputs_base() function
- session_inputs_free() function
- session_inputs_init() function
- session_inputs_replace() function
- session_inputs_storage_requirements() function
- input_base_t struct
- input_options_t struct
- session_inputs_t handle
Session resources
- ALLOCATION_REQUEST_INIT macro
- ALLOCATION_REQUEST_PREFIX_SIZE constant
- ALLOCATION_REQUEST_V1_SIZE constant
- ALLOCATION_STATS_INIT macro
- ALLOCATION_STATS_PREFIX_SIZE constant
- ALLOCATION_STATS_V1_SIZE constant
- ALLOCATION_STATS_VERSION constant
- CALLER_ALLOCATOR_INIT macro
- CALLER_ALLOCATOR_PREFIX_SIZE constant
- CALLER_ALLOCATOR_V1_SIZE constant
- CALLER_ALLOCATOR_VERSION constant
- CAPACITY_ALL constant
- CAPACITY_DERIVED_FACTS constant
- CAPACITY_INPUT_FACTS constant
- CAPACITY_SYMBOLS constant
- CAPACITY_TEXT_BYTES constant
- MEMORY_BACKEND_ELASTIC constant
- MEMORY_FIXED constant
- RESOURCE_CALLER_ALLOCATOR constant
- RESOURCE_CONTRACT_VERSION constant
- RESOURCE_REQUEST_INIT macro
- RESOURCE_REQUEST_PREFIX_SIZE constant
- RESOURCE_REQUEST_V1_SIZE constant
- RESOURCE_SESSION_CAPACITIES constant
- RESOURCE_SUPPORTED constant
- RESOURCE_SUPPORTED_014 constant
- RESOURCES_INIT macro
- RESOURCES_PREFIX_SIZE constant
- RESOURCES_V1_SIZE constant
- SESSION_PLAN_INIT macro
- SESSION_PLAN_PREFIX_SIZE constant
- SESSION_PLAN_V1_SIZE constant
- SESSION_PLAN_VERSION constant
- policy_load_manifest_text_in() function
- policy_storage_requirements() function
- session_config_set_resources() function
- session_get_allocation_stats() function
- session_get_resources() function
- session_init_configured() function
- session_storage_requirements_configured() function
- backend_storage_t struct
- caller_allocator_t struct
- session_allocation_request_t struct
- session_allocation_stats_t struct
- session_resource_request_t struct
- session_resources_t struct
- session_storage_plan_t struct
Event windows
- WINDOW_EXPIRATION constant
- group_window_contributions() function
- group_window_expire() function
- group_window_expiry_watermark() function
- group_window_facts() function
- group_window_free() function
- group_window_groups() function
- group_window_init() function
- group_window_init_configured() function
- group_window_push() function
- group_window_push_until() function
- group_window_replace_static() function
- group_window_result() function
- group_window_state() function
- group_window_static_facts() function
- group_window_storage_requirements() function
- group_window_storage_requirements_configured() function
- window_events() function
- window_expire() function
- window_expiry_watermark() function
- window_free() function
- window_init() function
- window_init_configured() function
- window_push() function
- window_push_until() function
- window_replace_static() function
- window_result() function
- window_state() function
- window_static_facts() function
- window_storage_requirements() function
- window_storage_requirements_configured() function
- window_text_usage() function
- event_group_t struct
- group_window_capacities_t struct
- group_window_t handle
- group_window_usage_t struct
- window_options_t struct
- window_t handle
Program
- HAS_RULE_VARIABLE_NAMES constant
- IR_MAX_BODY constant
- IR_MAX_EXPRESSIONS constant
- IR_MAX_VARIABLES constant
- IR_NO_EXPRESSION constant
- PROGRAM_ABI_VERSION constant
- program_fact() function
- program_fingerprint() function
- program_info() function
- program_predicate() function
- program_query() function
- program_query_count() function
- program_rule() function
- program_rule_variable_name() function
- session_program() function
- ir_atom_t struct
- ir_comparison_t enum
- ir_expression_kind_t enum
- ir_expression_t struct
- ir_literal_kind_t enum
- ir_literal_t struct
- ir_rule_t struct
- ir_term_kind_t enum
- ir_term_t struct
- program_info_t struct
- program_t handle
- source_location_t struct
Structured explanations
- EXPLANATION_NO_STEP constant
- prepared_explanation_info() function
- prepared_explanation_obstacle() function
- prepared_explanation_premise() function
- prepared_explanation_step() function
- explanation_info_t struct
- explanation_obstacle_view_t struct
- explanation_origin_t enum
- explanation_premise_kind_t enum
- explanation_premise_view_t struct
- explanation_step_view_t struct
- explanation_support_view_t struct
- why_false_limit_t enum
- why_false_obstacle_kind_t enum
- why_false_status_t enum
- why_false_summary_t enum
Result
- PUBLIC_MAX_TERMS constant
- prepared_explanation_release() function
- prepared_explanation_text_size() function
- prepared_explanation_write_text() function
- result_derived_fact_count() function
- result_enumerate() function
- result_explain_false_text() function
- result_explain_text_diagnosed() function
- result_explain_text_in() function
- result_explain_true_text() function
- result_explanation_storage_requirements() function
- result_filter_statistics() function
- result_free() function
- result_prepare_explanation() function
- result_prepare_explanation_diagnosed() function
- result_query() function
- result_symbol_text() function
- EXPLANATION_STORAGE() macro
- QUERY() macro
- explanation_kind_t enum
- fact_view_t struct
- filter_statistics_t struct
- prepared_explanation_t handle
- result_t handle
- term_view_t struct
Decisions
- decision_from_presence() function
- decision_t enum
Errors
- DIAGNOSTIC_ABI_VERSION constant
- DIAGNOSTIC_AGGREGATE constant
- DIAGNOSTIC_ARITY constant
- DIAGNOSTIC_CAPACITY constant
- DIAGNOSTIC_COMPARISON constant
- DIAGNOSTIC_CONTEXT constant
- DIAGNOSTIC_DEPTH constant
- DIAGNOSTIC_LOCATION constant
- DIAGNOSTIC_PREDICATE constant
- DIAGNOSTIC_RULE constant
- diag_code_name() function
- diagnostic_clear() function
- diagnostic_init() function
- diagnostic_initializer() function
- limit_get() function
- limit_name() function
- status_name() function
- DIAGNOSTIC_INIT macro
- diag_code_t enum
- diagnostic_source_t enum
- diagnostic_t struct
- limit_t enum
- status_t enum
Define a domain
Load and inspect policies
Provide input facts
Prepare and run a session
Session resources
Event windows
Program
Structured explanations
Read and explain results
Errors
Full program
C Extension API
Overview
Frontends
- program_add_fact() function
- program_add_rule() function
- frontend_t struct
- program_builder_t handle
Native modules
- MODULE_ABI_VERSION constant
- MODULE_MAX_FILTERS constant
- MODULE_NAME_BYTES constant
- MODULE_SEMANTIC_ID_BYTES constant
- domain_builder_add() function
- domain_register_advanced() function
- register_filter_module() function
- register_planner_module() function
- domain_builder_t handle
- domain_installer_t alias
- filter_cost_fn alias
- filter_evaluate_fn alias
- filter_module_t struct
- filter_validate_fn alias
- join_candidate_t struct
- join_choose_fn alias
- join_kind_t enum
- planner_module_t struct
Extension registration
- CONTEXT_MAX_COMPONENTS constant
- CONTEXT_MAX_EXTENSIONS constant
- EXTENSION_ABI_VERSION constant
- EXTENSION_V2_ABI_VERSION constant
- backend_reference() function
- backend_reference_v6() function
- backend_storage_requirements() function
- context_backend_v6_count() function
- context_backend_v6_info() function
- context_component_count() function
- context_component_info() function
- context_create() function
- context_free() function
- context_load_inline() function
- context_register() function
- context_register_v2() function
- context_seal() function
- context_session_create() function
- frontend_datalog() function
- policy_load_frontend() function
- policy_load_frontend_in() function
- session_config_set_backend() function
- session_config_set_backend_storage() function
- session_config_set_backend_v6() function
- session_config_set_backend_v7() function
- session_config_set_context() function
- session_config_set_context_backend_v6() function
- session_config_set_requirements() function
- session_create_ex() function
- component_info_t struct
- context_t handle
- extension_kind_t enum
- extension_t struct
- extension_v2_t struct
- session_options_t struct
Backends
- ALLOCATION_BUDGET_INIT macro
- ALLOCATION_BUDGET_PREFIX_SIZE constant
- ALLOCATION_BUDGET_V1_SIZE constant
- ALLOCATION_BUDGET_VERSION constant
- ALLOCATION_RESOURCES_V1_SIZE constant
- ALLOCATION_SERVICE_PREFIX_SIZE constant
- ALLOCATION_SERVICE_V1_SIZE constant
- ALLOCATION_SERVICE_VERSION constant
- BACKEND_ABI_VERSION constant
- BACKEND_INPUT_DELTA constant
- BACKEND_INPUT_REPLACE constant
- BACKEND_INPUT_VERSION constant
- BACKEND_V6_ABI_VERSION constant
- BACKEND_V6_SIZE constant
- BACKEND_V7_ABI_VERSION constant
- BACKEND_V7_SIZE constant
- backend_charge() function
- backend_emit() function
- backend_filter() function
- backend_input_at() function
- allocation_budget_t struct
- allocation_service_t struct
- backend_input_t struct
- backend_input_view_t handle
- backend_output_t handle
- backend_t struct
- backend_transaction_solve_t alias
- backend_v6_t struct
- backend_v7_t struct
- session_allocation_resources_t struct
Frontends
Native modules
Extension registration
Backends
Python
Overview
Engine
- Engine() constructor
- with engine: protocol
- engine.close() method
- engine.load_inline_ruleset() method
- engine.load_manifest() method
- engine.register_domain() method
- Engine class
Predicate
- Predicate.edb() method
- Predicate.edb_query() method
- Predicate.idb() method
- Predicate.idb_query() method
- Predicate.policy_fact() method
- Predicate.policy_fact_query() method
- PRED_EDB constant
- PRED_IDB constant
- PRED_POLICY_FACT constant
- PRED_QUERY constant
- Predicate() constructor
- Predicate class
Ruleset
- with ruleset: protocol
- ruleset.close() method
- ruleset.edb() method
- ruleset.prepare() method
- ruleset.program_counts() method
- ruleset.reads_predicate() method
- ruleset.solve() method
- Ruleset class
Edb
- Edb() constructor
- len(edb) protocol
- edb.add_fact() method
- edb.add_facts() method
- edb.clear() method
- edb.close() method
- edb.reset() method
- Edb class
Session
- with session: protocol
- session.close() method
- session.inputs() method
- session.solve() method
- Session class
InputBase
- InputBase() constructor
- InputBase class
SessionInputs
- with inputs: protocol
- inputs.apply() method
- inputs.close() method
- inputs.replace() method
- SessionInputs class
SolveResult
- with result: protocol
- result.close() method
- result.contains_fact() method
- result.derived_fact_count() method
- result.enumerate_predicate_facts() method
- result.enumerate_raw() method
- result.explain_false() method
- result.explain_true() method
- result.resolve_term() method
- SolveResult class
ResultTerm
- term.resolve() method
- ResultTerm class
MaelysDatalogError
- MaelysDatalogError exception
Limits
- Limits class
ProgramCounts
- ProgramCounts class
SessionCapacities
- SessionCapacities() constructor
- SessionCapacities class
Diagnostic
- Diagnostic class
Status
- Status enum
Capability
- Capability enum
ExplanationKind
- ExplanationKind enum
Registries
Manifests
Rulesets
Runtime EDB
Solving
Querying
Errors
Full program
TypeScript / JS
Overview
Engine
- using engine protocol
- engine.close() method
- engine.loadInlineRuleset() method
- engine.loadManifest() method
- engine.registerDomain() method
- Engine.create() method
- Engine class
- EngineOptions interface
- ManifestInput alias
- ManifestOptions interface
Predicate
- PRED_EDB constant
- PRED_IDB constant
- PRED_POLICY_FACT constant
- PRED_QUERY constant
- new Predicate() constructor
- Predicate.edb() method
- Predicate.edbQuery() method
- Predicate.idb() method
- Predicate.idbQuery() method
- Predicate.policyFact() method
- Predicate.policyFactQuery() method
- Predicate class
Ruleset
- using ruleset protocol
- ruleset.close() method
- ruleset.edb() method
- ruleset.prepare() method
- ruleset.programCounts() method
- ruleset.readsPredicate() method
- ruleset.solve() method
- ProgramCounts interface
- Ruleset class
Edb
- using edb protocol
- edb.addFact() method
- edb.addFacts() method
- edb.clear() method
- edb.close() method
- edb.reset() method
- Edb class
- EdbOptions interface
- EdbUsage interface
- Fact interface
- InputValue alias
- Value alias
Session
- Capability object
- ExplanationKind object
- new SessionCapacities() constructor
- using session protocol
- session.close() method
- session.inputs() method
- session.solve() method
- CapacityOptions interface
- Session class
- SessionCapacities class
- SessionOptions interface
Session inputs
- new InputBase() constructor
- using retained protocol
- retained.apply() method
- retained.close() method
- retained.replace() method
- InputBase class
- InputOptions interface
- SessionInputs class
ResultTerm and SolveResult
- term.resolve() method
- using result protocol
- result.close() method
- result.containsFact() method
- result.derivedFactCount() method
- result.enumeratePredicateFacts() method
- result.enumerateRaw() method
- result.explainFalse() method
- result.explainTrue() method
- result.resolveTerm() method
- ResultTerm class
- SolveResult class
MaelysDatalogError
- Status object
- new MaelysDatalogError() constructor
- Diagnostic interface
- Limits interface
- MaelysDatalogError exception
WASM integration
- module._free() method
- module._malloc() method
- module.ccall() method
- WasmModule interface