MCPcopy Create free account

hub / github.com/dbt-labs/dbt-extractor / functions

Functions68 in github.com/dbt-labs/dbt-extractor

↓ 12 callersFunctionassert_none_type_check
(sources: Vec<&str>)
src/extractor.rs:774
↓ 11 callersMethodto_string
(&self)
src/extractor.rs:234
↓ 9 callersFunctionassert_extraction
(source: &str, expected: Extraction)
tests/integration_tests.rs:8
↓ 7 callersMethodmappend
monoidal mappend: takes two Extraction values and immutably merges them into a single Extraction value id element: Extraction::new() associative: x.ma
src/extractor.rs:53
↓ 7 callersFunctiontext_from_node
tree-sitter nodes do not contain all necessary text values. This maps back to source to retrieve them.
src/extractor.rs:303
↓ 6 callersFunctionchild_by_field_name
in the tree-sitter grammar some elements are named, those are the string values used to retrieve children.
src/extractor.rs:288
↓ 5 callersFunctionassert_all_type_check
(sources: Vec<&str>)
src/extractor.rs:764
↓ 5 callersFunctionmap_err
change the error of a result value frequently used to wrap exceptions lower on the hierarchy into their parent type
src/extractor.rs:267
↓ 4 callersFunctionassert_produces_tree
(source: &str, expect: ExprT)
src/extractor.rs:785
↓ 4 callersFunctionget_results
(sources: Vec<&str>)
src/extractor.rs:750
↓ 4 callersFunctionnamed_children
tree-sitter returns a concrete syntax tree. only named elements form the abstract syntax tree.
src/extractor.rs:297
↓ 2 callersFunctionassert_fails_with
(source: &str, expect: ParseError)
src/extractor.rs:796
↓ 2 callersFunctionextract_from_source
public entry point
src/extractor.rs:710
↓ 2 callersFunctionrun_tree_sitter
go go gadget tree-sitter!
src/extractor.rs:692
↓ 2 callersFunctionstrip_first_and_last
generally used to strip quotes off strings from the source file
src/extractor.rs:311
↓ 2 callersFunctionto_ast
transforms the tree-sitter tree structure which relies on a lot of string matching into the more structured ExprU type. This allows the rust compiler
src/extractor.rs:320
↓ 2 callersFunctiontype_check
Attempts to convert the untypted ast into the typed ast, returning errors when necessary.
src/extractor.rs:443
↓ 1 callersFunctionconvert_config
Can't export ConfigVal directly: https://github.com/PyO3/pyo3/issues/417
src/python.rs:14
↓ 1 callersFunctionerror_anywhere
checks for tree-sitter `error` and `missing` values
src/extractor.rs:275
↓ 1 callersFunctionextract_from
extract refs sources and configs from the typed ast. there is no error in the return type because we have caught them all at this point that invariant
src/extractor.rs:673
↓ 1 callersFunctionkwargs_last
(args: &[ExprU])
src/extractor.rs:401
↓ 1 callersFunctionpythonize
Transation between rust extraction type and Python dictionary
src/python.rs:40
↓ 1 callersFunctionto_py_result
Naively converts a Result to a PyResult by using the string representation of the Rust exception as the message for ExtractionError.
src/python.rs:76
↓ 1 callersFunctiontype_check_configs
for now, configs are constrained to a subset of types. This function checks for those types specifically returning a type that maintains that invarian
src/extractor.rs:418
Methodarbitrary
(g: &mut Gen)
src/extractor.rs:22
Functionbad_source_keyword_args
()
src/extractor.rs:868
Functionburied_refs_ast
()
src/extractor.rs:985
Functionconfig_ast
()
src/extractor.rs:1011
Functionconfig_excluded_kwargs
()
src/extractor.rs:924
Functionconfig_fails_non_kwarg_inputs
()
src/extractor.rs:849
Functiondbt_extractor
(py: Python, m: &Bound<'_, PyModule>)
src/python.rs:91
Methoddefault
()
src/extractor.rs:75
Functionexception_messages_render_as_expected
()
src/exceptions.rs:80
Functionexpected_arity
expected_arity(vec![1,4,3,2]) == "1 to 4" expected_arity(vec![1,4]) == "1 to 4" expected_arity(vec![3]) == "3" expected_arity(vec![]) == "any"
src/exceptions.rs:58
Functionextractor_associativity
(x: Extraction, y: Extraction, z: Extraction)
src/extractor.rs:740
Functionextractor_left_and_right_identity
(x: Extraction)
src/extractor.rs:734
Functionextracts_all
()
tests/integration_tests.rs:85
Functionextracts_configs
()
tests/integration_tests.rs:60
Functionextracts_from_deepyly_nested_config
()
tests/integration_tests.rs:114
Functionextracts_multi_key_config
()
tests/integration_tests.rs:146
Functionextracts_multiple_distinct_config_blocks
()
tests/integration_tests.rs:161
Functionextracts_multiple_overlapping_config_blocks
()
tests/integration_tests.rs:176
Functionextracts_refs
()
tests/integration_tests.rs:16
Functionextracts_sources
()
tests/integration_tests.rs:70
Functionfails_on_open_jinja_brackets
()
src/extractor.rs:968
Functionfails_on_other_fn_names
()
src/extractor.rs:828
Methodfrom
(expr: &ExprU)
src/extractor.rs:250
Functionjinja_expression_ast
()
src/extractor.rs:1038
Functionjinja_expressions_fail_everywhere
()
src/extractor.rs:934
Functionkwarg_order
()
src/extractor.rs:1046
Functionmain
This is a stub main. This will eventually run the extractor over real dbt projects in order to detect false positives and misses.
src/main.rs:7
Functionmulti_block_with_jinja_expression_rejected
()
src/extractor.rs:949
Functionnested_fn_calls_fail
()
src/extractor.rs:914
Methodpopulate
( refs: Option<Vec<DbtRef>>, sources: Option<Vec<(String, String)>>, configs: Option<V
src/extractor.rs:61
Functionpy_extract_from_source
(source: &str)
src/python.rs:86
Functionrecognizes_multiple_jinja_calls
()
src/extractor.rs:819
Functionrecognizes_ref_source_config
()
src/extractor.rs:809
Functionref_accepts_one_and_two_strings
()
src/extractor.rs:897
Functionref_ast
()
src/extractor.rs:973
Functionref_bad_inputs_fail
()
src/extractor.rs:902
Methodshrink
(&self)
src/extractor.rs:30
Functionsource_args_must_be_strings
()
src/extractor.rs:887
Functionsource_ast
()
src/extractor.rs:1030
Functionsource_keyword_args
()
src/extractor.rs:859
Functionsource_must_have_2_args
()
src/extractor.rs:877
Functiontest_config_all_inputs
()
src/extractor.rs:837
Functiontest_expected_arity
if you change this test, change the comments on the function to match
src/exceptions.rs:154
Functiontop_level_kwargs_are_rejected
()
src/extractor.rs:944