[package]
edition = "2024"
rust-version = "1.95"
name = "spg-engine"
version = "7.19.0"
authors = ["GOLIA K.K. <lihao@golia.jp>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Execution engine for SPG: glues spg-sql parsing to spg-storage. Foreign keys, joins, vectors, cold tier."
readme = false
keywords = [
"spg",
"sql",
"engine",
"executor",
"no-std",
]
categories = ["database-implementations"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/goliajp/spg"
[lib]
name = "spg_engine"
path = "src/lib.rs"
[[test]]
name = "e2e"
path = "tests/e2e.rs"
[[test]]
name = "e2e_alter_add_column"
path = "tests/e2e_alter_add_column.rs"
[[test]]
name = "e2e_array_ops"
path = "tests/e2e_array_ops.rs"
[[test]]
name = "e2e_as_of_segment"
path = "tests/e2e_as_of_segment.rs"
[[test]]
name = "e2e_audit_n6_remainder"
path = "tests/e2e_audit_n6_remainder.rs"
[[test]]
name = "e2e_bool_agg"
path = "tests/e2e_bool_agg.rs"
[[test]]
name = "e2e_brin"
path = "tests/e2e_brin.rs"
[[test]]
name = "e2e_bytea"
path = "tests/e2e_bytea.rs"
[[test]]
name = "e2e_bytea_ops"
path = "tests/e2e_bytea_ops.rs"
[[test]]
name = "e2e_cast_targets"
path = "tests/e2e_cast_targets.rs"
[[test]]
name = "e2e_ceil"
path = "tests/e2e_ceil.rs"
[[test]]
name = "e2e_cold_rows_per_table"
path = "tests/e2e_cold_rows_per_table.rs"
[[test]]
name = "e2e_collate"
path = "tests/e2e_collate.rs"
[[test]]
name = "e2e_collate_order_group"
path = "tests/e2e_collate_order_group.rs"
[[test]]
name = "e2e_compaction"
path = "tests/e2e_compaction.rs"
[[test]]
name = "e2e_concat"
path = "tests/e2e_concat.rs"
[[test]]
name = "e2e_concat_ws"
path = "tests/e2e_concat_ws.rs"
[[test]]
name = "e2e_create_extension"
path = "tests/e2e_create_extension.rs"
[[test]]
name = "e2e_deferrable"
path = "tests/e2e_deferrable.rs"
[[test]]
name = "e2e_delimiter"
path = "tests/e2e_delimiter.rs"
[[test]]
name = "e2e_do_block"
path = "tests/e2e_do_block.rs"
[[test]]
name = "e2e_domain_type"
path = "tests/e2e_domain_type.rs"
[[test]]
name = "e2e_enum_type"
path = "tests/e2e_enum_type.rs"
[[test]]
name = "e2e_explain_analyze"
path = "tests/e2e_explain_analyze.rs"
[[test]]
name = "e2e_expression_index"
path = "tests/e2e_expression_index.rs"
[[test]]
name = "e2e_fetch_with_ties"
path = "tests/e2e_fetch_with_ties.rs"
[[test]]
name = "e2e_fk_advanced"
path = "tests/e2e_fk_advanced.rs"
[[test]]
name = "e2e_fk_alter"
path = "tests/e2e_fk_alter.rs"
[[test]]
name = "e2e_fk_catalog"
path = "tests/e2e_fk_catalog.rs"
[[test]]
name = "e2e_fk_chaos"
path = "tests/e2e_fk_chaos.rs"
[[test]]
name = "e2e_fk_delete_cascade"
path = "tests/e2e_fk_delete_cascade.rs"
[[test]]
name = "e2e_fk_delete_restrict"
path = "tests/e2e_fk_delete_restrict.rs"
[[test]]
name = "e2e_fk_delete_set"
path = "tests/e2e_fk_delete_set.rs"
[[test]]
name = "e2e_fk_insert"
path = "tests/e2e_fk_insert.rs"
[[test]]
name = "e2e_fk_update"
path = "tests/e2e_fk_update.rs"
[[test]]
name = "e2e_floor"
path = "tests/e2e_floor.rs"
[[test]]
name = "e2e_for_update"
path = "tests/e2e_for_update.rs"
[[test]]
name = "e2e_format"
path = "tests/e2e_format.rs"
[[test]]
name = "e2e_fts"
path = "tests/e2e_fts.rs"
[[test]]
name = "e2e_fulltext_gin_seek"
path = "tests/e2e_fulltext_gin_seek.rs"
[[test]]
name = "e2e_fulltext_index"
path = "tests/e2e_fulltext_index.rs"
[[test]]
name = "e2e_fulltext_planner"
path = "tests/e2e_fulltext_planner.rs"
[[test]]
name = "e2e_generate_series"
path = "tests/e2e_generate_series.rs"
[[test]]
name = "e2e_get_ddl"
path = "tests/e2e_get_ddl.rs"
[[test]]
name = "e2e_gin_trgm_partial"
path = "tests/e2e_gin_trgm_partial.rs"
[[test]]
name = "e2e_greatest_least"
path = "tests/e2e_greatest_least.rs"
[[test]]
name = "e2e_group_by_all"
path = "tests/e2e_group_by_all.rs"
[[test]]
name = "e2e_hnsw_opclass"
path = "tests/e2e_hnsw_opclass.rs"
[[test]]
name = "e2e_include"
path = "tests/e2e_include.rs"
[[test]]
name = "e2e_index_advisor"
path = "tests/e2e_index_advisor.rs"
[[test]]
name = "e2e_inet_contains"
path = "tests/e2e_inet_contains.rs"
[[test]]
name = "e2e_inet_types"
path = "tests/e2e_inet_types.rs"
[[test]]
name = "e2e_info_mysql_views"
path = "tests/e2e_info_mysql_views.rs"
[[test]]
name = "e2e_inline_column_constraints"
path = "tests/e2e_inline_column_constraints.rs"
[[test]]
name = "e2e_inline_pk"
path = "tests/e2e_inline_pk.rs"
[[test]]
name = "e2e_insert_select"
path = "tests/e2e_insert_select.rs"
[[test]]
name = "e2e_int_array"
path = "tests/e2e_int_array.rs"
[[test]]
name = "e2e_interval_cast"
path = "tests/e2e_interval_cast.rs"
[[test]]
name = "e2e_json_build"
path = "tests/e2e_json_build.rs"
[[test]]
name = "e2e_json_path"
path = "tests/e2e_json_path.rs"
[[test]]
name = "e2e_jsonb"
path = "tests/e2e_jsonb.rs"
[[test]]
name = "e2e_jsonb_path_query"
path = "tests/e2e_jsonb_path_query.rs"
[[test]]
name = "e2e_key_column"
path = "tests/e2e_key_column.rs"
[[test]]
name = "e2e_lateral_join"
path = "tests/e2e_lateral_join.rs"
[[test]]
name = "e2e_left_right"
path = "tests/e2e_left_right.rs"
[[test]]
name = "e2e_limit_placeholder"
path = "tests/e2e_limit_placeholder.rs"
[[test]]
name = "e2e_lpad_rpad"
path = "tests/e2e_lpad_rpad.rs"
[[test]]
name = "e2e_materialized_view"
path = "tests/e2e_materialized_view.rs"
[[test]]
name = "e2e_memoize"
path = "tests/e2e_memoize.rs"
[[test]]
name = "e2e_merge"
path = "tests/e2e_merge.rs"
[[test]]
name = "e2e_mod"
path = "tests/e2e_mod.rs"
[[test]]
name = "e2e_multi_col_index"
path = "tests/e2e_multi_col_index.rs"
[[test]]
name = "e2e_mysql_conditional"
path = "tests/e2e_mysql_conditional.rs"
[[test]]
name = "e2e_mysql_inline_enum"
path = "tests/e2e_mysql_inline_enum.rs"
[[test]]
name = "e2e_mysql_inline_set"
path = "tests/e2e_mysql_inline_set.rs"
[[test]]
name = "e2e_mysql_procedure"
path = "tests/e2e_mysql_procedure.rs"
[[test]]
name = "e2e_mysql_time_alias"
path = "tests/e2e_mysql_time_alias.rs"
[[test]]
name = "e2e_mysql_tinyint1_coerce"
path = "tests/e2e_mysql_tinyint1_coerce.rs"
[[test]]
name = "e2e_mysql_user_db"
path = "tests/e2e_mysql_user_db.rs"
[[test]]
name = "e2e_mysql_view_algorithm"
path = "tests/e2e_mysql_view_algorithm.rs"
[[test]]
name = "e2e_mysql_year"
path = "tests/e2e_mysql_year.rs"
[[test]]
name = "e2e_now_bare_call"
path = "tests/e2e_now_bare_call.rs"
[[test]]
name = "e2e_nullif"
path = "tests/e2e_nullif.rs"
[[test]]
name = "e2e_on_conflict_composite"
path = "tests/e2e_on_conflict_composite.rs"
[[test]]
name = "e2e_on_conflict_nothing"
path = "tests/e2e_on_conflict_nothing.rs"
[[test]]
name = "e2e_on_conflict_update"
path = "tests/e2e_on_conflict_update.rs"
[[test]]
name = "e2e_on_update_current_timestamp"
path = "tests/e2e_on_update_current_timestamp.rs"
[[test]]
name = "e2e_order_by_multi"
path = "tests/e2e_order_by_multi.rs"
[[test]]
name = "e2e_partial_index"
path = "tests/e2e_partial_index.rs"
[[test]]
name = "e2e_per_table_budget"
path = "tests/e2e_per_table_budget.rs"
[[test]]
name = "e2e_pg_array_2d"
path = "tests/e2e_pg_array_2d.rs"
[[test]]
name = "e2e_pg_constraint_view"
path = "tests/e2e_pg_constraint_view.rs"
[[test]]
name = "e2e_pg_customer_parity"
path = "tests/e2e_pg_customer_parity.rs"
[[test]]
name = "e2e_pg_database_roles_view"
path = "tests/e2e_pg_database_roles_view.rs"
[[test]]
name = "e2e_pg_hstore"
path = "tests/e2e_pg_hstore.rs"
[[test]]
name = "e2e_pg_indexes_view"
path = "tests/e2e_pg_indexes_view.rs"
[[test]]
name = "e2e_pg_money"
path = "tests/e2e_pg_money.rs"
[[test]]
name = "e2e_pg_namespace_view"
path = "tests/e2e_pg_namespace_view.rs"
[[test]]
name = "e2e_pg_proc_view"
path = "tests/e2e_pg_proc_view.rs"
[[test]]
name = "e2e_pg_range"
path = "tests/e2e_pg_range.rs"
[[test]]
name = "e2e_pg_settings_view"
path = "tests/e2e_pg_settings_view.rs"
[[test]]
name = "e2e_pg_time"
path = "tests/e2e_pg_time.rs"
[[test]]
name = "e2e_pg_timetz"
path = "tests/e2e_pg_timetz.rs"
[[test]]
name = "e2e_pg_type_view"
path = "tests/e2e_pg_type_view.rs"
[[test]]
name = "e2e_pg_typeof"
path = "tests/e2e_pg_typeof.rs"
[[test]]
name = "e2e_pg_views_view"
path = "tests/e2e_pg_views_view.rs"
[[test]]
name = "e2e_pgdump_compat"
path = "tests/e2e_pgdump_compat.rs"
[[test]]
name = "e2e_plan_cache"
path = "tests/e2e_plan_cache.rs"
[[test]]
name = "e2e_plan_cache_invalidation"
path = "tests/e2e_plan_cache_invalidation.rs"
[[test]]
name = "e2e_power"
path = "tests/e2e_power.rs"
[[test]]
name = "e2e_random"
path = "tests/e2e_random.rs"
[[test]]
name = "e2e_regexp_family"
path = "tests/e2e_regexp_family.rs"
[[test]]
name = "e2e_repeat"
path = "tests/e2e_repeat.rs"
[[test]]
name = "e2e_replace"
path = "tests/e2e_replace.rs"
[[test]]
name = "e2e_returning"
path = "tests/e2e_returning.rs"
[[test]]
name = "e2e_round"
path = "tests/e2e_round.rs"
[[test]]
name = "e2e_round5_alter_and_trigger"
path = "tests/e2e_round5_alter_and_trigger.rs"
[[test]]
name = "e2e_round5_misc"
path = "tests/e2e_round5_misc.rs"
[[test]]
name = "e2e_round6_surfaces"
path = "tests/e2e_round6_surfaces.rs"
[[test]]
name = "e2e_round7_surfaces"
path = "tests/e2e_round7_surfaces.rs"
[[test]]
name = "e2e_runtime_default"
path = "tests/e2e_runtime_default.rs"
[[test]]
name = "e2e_schema"
path = "tests/e2e_schema.rs"
[[test]]
name = "e2e_select_star_agg"
path = "tests/e2e_select_star_agg.rs"
[[test]]
name = "e2e_sequence"
path = "tests/e2e_sequence.rs"
[[test]]
name = "e2e_serial"
path = "tests/e2e_serial.rs"
[[test]]
name = "e2e_session_funcs"
path = "tests/e2e_session_funcs.rs"
[[test]]
name = "e2e_setof_aggregate"
path = "tests/e2e_setof_aggregate.rs"
[[test]]
name = "e2e_show_create_table"
path = "tests/e2e_show_create_table.rs"
[[test]]
name = "e2e_show_databases"
path = "tests/e2e_show_databases.rs"
[[test]]
name = "e2e_show_misc_mysql"
path = "tests/e2e_show_misc_mysql.rs"
[[test]]
name = "e2e_sign"
path = "tests/e2e_sign.rs"
[[test]]
name = "e2e_slow_query"
path = "tests/e2e_slow_query.rs"
[[test]]
name = "e2e_snapshot"
path = "tests/e2e_snapshot.rs"
[[test]]
name = "e2e_spg_stat_query"
path = "tests/e2e_spg_stat_query.rs"
[[test]]
name = "e2e_spg_stat_views"
path = "tests/e2e_spg_stat_views.rs"
[[test]]
name = "e2e_split_part"
path = "tests/e2e_split_part.rs"
[[test]]
name = "e2e_sql_funcs"
path = "tests/e2e_sql_funcs.rs"
[[test]]
name = "e2e_sqrt"
path = "tests/e2e_sqrt.rs"
[[test]]
name = "e2e_srf_unnest_projection"
path = "tests/e2e_srf_unnest_projection.rs"
[[test]]
name = "e2e_string_agg"
path = "tests/e2e_string_agg.rs"
[[test]]
name = "e2e_strpos"
path = "tests/e2e_strpos.rs"
[[test]]
name = "e2e_table_constraints_engine"
path = "tests/e2e_table_constraints_engine.rs"
[[test]]
name = "e2e_text_array"
path = "tests/e2e_text_array.rs"
[[test]]
name = "e2e_timestamptz"
path = "tests/e2e_timestamptz.rs"
[[test]]
name = "e2e_tinyint_bool"
path = "tests/e2e_tinyint_bool.rs"
[[test]]
name = "e2e_tpch"
path = "tests/e2e_tpch.rs"
[[test]]
name = "e2e_transactional_ddl"
path = "tests/e2e_transactional_ddl.rs"
[[test]]
name = "e2e_translate"
path = "tests/e2e_translate.rs"
[[test]]
name = "e2e_trigger"
path = "tests/e2e_trigger.rs"
[[test]]
name = "e2e_trim"
path = "tests/e2e_trim.rs"
[[test]]
name = "e2e_trunc"
path = "tests/e2e_trunc.rs"
[[test]]
name = "e2e_two_tier"
path = "tests/e2e_two_tier.rs"
[[test]]
name = "e2e_unique_collation"
path = "tests/e2e_unique_collation.rs"
[[test]]
name = "e2e_unique_index"
path = "tests/e2e_unique_index.rs"
[[test]]
name = "e2e_unique_nulls_not_distinct"
path = "tests/e2e_unique_nulls_not_distinct.rs"
[[test]]
name = "e2e_unsigned"
path = "tests/e2e_unsigned.rs"
[[test]]
name = "e2e_uuid"
path = "tests/e2e_uuid.rs"
[[test]]
name = "e2e_view"
path = "tests/e2e_view.rs"
[[test]]
name = "e2e_window_in_join"
path = "tests/e2e_window_in_join.rs"
[[test]]
name = "e2e_window_null_treatment"
path = "tests/e2e_window_null_treatment.rs"
[[test]]
name = "e2e_window_with_join"
path = "tests/e2e_window_with_join.rs"
[[test]]
name = "perf_gate"
path = "tests/perf_gate.rs"
[[test]]
name = "perf_join_reorder"
path = "tests/perf_join_reorder.rs"
[[test]]
name = "perf_plan_cache"
path = "tests/perf_plan_cache.rs"
[[test]]
name = "perf_stages_knn"
path = "tests/perf_stages_knn.rs"
[[bench]]
name = "execute"
path = "benches/execute.rs"
harness = false
[dependencies.sha1]
version = "0.10"
default-features = false
[dependencies.sha2]
version = "0.10"
default-features = false
[dependencies.spg-crypto]
version = "7.9"
[dependencies.spg-sql]
version = "7.9"
[dependencies.spg-storage]
version = "7.9"
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[lints.clippy]
approx_constant = "allow"
assigning_clones = "allow"
bool_assert_comparison = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
comparison_chain = "allow"
doc_lazy_continuation = "allow"
doc_markdown = "allow"
doc_overindented_list_items = "allow"
duration_suboptimal_units = "allow"
duration_subsec = "allow"
elidable_lifetime_names = "allow"
explicit_iter_loop = "allow"
float_cmp = "allow"
float_cmp_const = "allow"
for_kv_map = "allow"
format_push_string = "allow"
from_iter_instead_of_collect = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
ignored_unit_patterns = "allow"
items_after_statements = "allow"
len_zero = "allow"
let_and_return = "allow"
manual_assert = "allow"
manual_checked_ops = "allow"
manual_clamp = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_collect = "allow"
needless_continue = "allow"
needless_option_as_deref = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
range_plus_one = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
should_panic_without_expect = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_lazy_evaluations = "allow"
unnecessary_map_or = "allow"
unnecessary_to_owned = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_self = "allow"
useless_format = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
dead_code = "allow"
missing_debug_implementations = "warn"
non_snake_case = "allow"
unsafe_code = "deny"
unused_must_use = "deny"
unused_mut = "allow"
unused_variables = "allow"