Repository Analysis

tursodatabase/turso

Turso is an in-process SQL database, compatible with SQLite.

2.5 Likely human-written View on GitHub
2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-05-29
Last Push
19,006
Stars
Rust
Language
679,731
Lines of Code
1384
Files
1307
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 31MEDIUM 188LOW 1086

Pattern Findings

1307 matches across 17 categories. Click a row to expand file-level details.

Over-Commented Block625 hits · 585 pts
SeverityFileLineSnippet
LOWsql_generation/generation/mod.rs41/// ArbitraryFrom trait for generating random values from a given value
LOWsql_generation/generation/expr.rs121 // base: Option::arbitrary_from(rng, t),
LOWsql_generation/generation/expr.rs141 // Box::new(|rng| {
LOWsql_generation/generation/expr.rs161 // let table_idx = pick_index(t.tables.len(), rng);
LOWsql_generation/generation/opts.rs21#[serde(deny_unknown_fields, default)]
LOWsql_generation/generation/predicate/unary.rs141 num_retries,
LOWsql_generation/generation/predicate/unary.rs201 let column_index = rng.random_range(0..row.len());
LOWsql_generation/generation/predicate/unary.rs221 // // True Value with negative is still True
LOWtools/dbhash/src/encoder.rs1//! Value encoding for dbhash.
LOWcore/types.rs961mod immutable_record {
LOWcore/types.rs1601}
LOWcore/types.rs1621 /// Reference to header section up to data offset
LOWcore/types.rs2201 SeekOp::LE { eq_only: false } => std::cmp::Ordering::Less,
LOWcore/types.rs2221/// - Payload is at least 2 bytes (header size + first serial type)
LOWcore/types.rs2301}
LOWcore/types.rs2321/// If any condition fails, it falls back to `compare_records_generic()`.
LOWcore/types.rs2421///
LOWcore/types.rs2441///
LOWcore/types.rs3101 Found,
LOWcore/util.rs1161 .map(|i| i + 1)
LOWcore/statement.rs41/// is the SQLite-compatible notion of "another SQL statement in progress" used
LOWcore/statement.rs81 /// indicates if the statement is a NORMAL/EXPLAIN/EXPLAIN QUERY PLAN
LOWcore/error.rs41 InvalidModifier(String),
LOWcore/lib.rs181/// Database index for the temp database (always 1 in SQLite).
LOWcore/lib.rs401/// Sub state machine for [`Database::header_validation`], driven from
LOWcore/lib.rs521 }
LOWcore/lib.rs541/// state between iterations, but static variables persist - using shuttle's
LOWcore/percentile.rs201/// Standard Deviation implementation using Welford's algorithm
LOWcore/schema.rs101 /// For temp triggers that target a table in a specific database.
LOWcore/schema.rs3321 pub plan: Box<Plan>,
LOWcore/busy.rs1use crate::MonotonicInstant;
LOWcore/busy.rs41
LOWcore/stats.rs21 /// - total_rows = 1000
LOWcore/connection.rs81 pub(crate) db: Arc<Database>,
LOWcore/connection.rs181 pub(super) page_size: AtomicU16,
LOWcore/connection.rs221 pub(super) failure_injector: RwLock<Option<Arc<dyn FailureInjector>>>,
LOWcore/connection.rs261 pub(crate) fk_deferred_violations: AtomicIsize,
LOWcore/connection.rs281 /// changes. Allows prepared statements to cheaply detect when they need to be
LOWcore/index_method/fts.rs481/// FTS index files are stored in a BTree with the schema `(path TEXT, chunk_no INTEGER, bytes BLOB)`.
LOWcore/index_method/fts.rs501/// - The cursor is dropped with pending documents
LOWcore/index_method/mod.rs61 /// special marker which forces tursodb core to treat index method as backing btree - so it will allocate real btree
LOWcore/index_method/mod.rs101
LOWcore/index_method/mod.rs121
LOWcore/incremental/operator.rs221 group_by: Vec<String>,
LOWcore/incremental/operator.rs1521
LOWcore/incremental/project_operator.rs21#[derive(Clone)]
LOWcore/incremental/compiler.rs861 ),
LOWcore/incremental/cursor.rs41/// 1. Persistent btree data (committed state)
LOWcore/incremental/cursor.rs1181
LOWcore/incremental/expr_compiler.rs21// do this?
LOWcore/incremental/aggregate_operator.rs21use std::fmt::{self, Display};
LOWcore/incremental/aggregate_operator.rs41// - **Deletes**: Must recompute from the BTree when the current min/max is deleted
LOWcore/incremental/aggregate_operator.rs61// A clever reuse of infrastructure: SELECT DISTINCT x, y, z is compiled to:
LOWcore/incremental/aggregate_operator.rs461/// State for a single group's aggregates
LOWcore/incremental/aggregate_operator.rs481 // Populated during FetchKey for values mentioned in the delta
LOWcore/incremental/aggregate_operator.rs1161 //
LOWcore/incremental/dbsp.rs121// The DBSP paper uses as a key the whole record, with both the row key and the values. This is a
LOWcore/incremental/view.rs181 }
LOWcore/translate/group_by.rs41 /// Label for the instruction that sets the accumulator indicator to true (indicating data exists in the accumulator
LOWcore/translate/group_by.rs261 Ok(())
565 more matches not shown…
Decorative Section Separators103 hits · 338 pts
SeverityFileLineSnippet
MEDIUMcore/storage/encryption.rs30/// ┌───────────────┐ ┌───────────────┐
MEDIUMcore/storage/encryption.rs33/// │ (4048 bytes) │ ────────► │ Content │
MEDIUMcore/storage/encryption.rs35/// ├───────────────┤ ├───────────────┤
MEDIUMcore/storage/encryption.rs37/// │ (48 bytes) │ ├───────────────┤
MEDIUMcore/storage/encryption.rs39/// └───────────────┘ └───────────────┘
MEDIUMcore/storage/encryption.rs55/// ┌─────────┬───────┬────────┬──────────────────┐
MEDIUMcore/storage/encryption.rs60/// └─────────┴───────┴────────┴──────────────────┘
MEDIUMcore/vdbe/hash_table.rs4396 // ── Grace hash join tests ──────────────────────────────────────
MEDIUMcore/mvcc/database/tests.rs6852// ─── GC helpers ───────────────────────────────────────────────────────────
MEDIUMcore/mvcc/database/tests.rs6872// ─── GC unit tests ───────────────────────────────────────────────────────
MEDIUMcore/mvcc/database/tests.rs7385// ─── GC quickcheck property tests ────────────────────────────────────────
MEDIUMcore/mvcc/database/tests.rs8404// ─── End-to-end GC + dual cursor tests ───────────────────────────────────
MEDIUMcore/mvcc/persistent_storage/logical_log.rs19//! ┌─────────────────────────────────────────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs23//! ├─────────────────────────────────────────┤
MEDIUMcore/mvcc/persistent_storage/logical_log.rs25//! ├─────────────────────────────────────────┤
MEDIUMcore/mvcc/persistent_storage/logical_log.rs27//! ├─────────────────────────────────────────┤
MEDIUMcore/mvcc/persistent_storage/logical_log.rs29//! └─────────────────────────────────────────┘
MEDIUMcore/mvcc/persistent_storage/logical_log.rs35//! ┌─────────────────────────────────────────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs39//! ├─────────────────────────────────────────┤
MEDIUMcore/mvcc/persistent_storage/logical_log.rs49//! ├─────────────────────────────────────────┤
MEDIUMcore/mvcc/persistent_storage/logical_log.rs52//! └─────────────────────────────────────────┘
MEDIUMcore/mvcc/persistent_storage/logical_log.rs150//! ┌──────────────┬──────────────────────────────┬───────────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs153//! └──────────────┴──────────────────────────────┴───────────┘
MEDIUMcore/mvcc/persistent_storage/logical_log.rs156//! ┌──────────────┬──────────┬──────────┬──────────┬───────────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs159//! └──────────────┴──────────┴──────────┴──────────┴───────────┘
MEDIUMcore/mvcc/persistent_storage/logical_log.rs162//! ┌───────────────────────────┬───────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs164//! └───────────────────────────┴───────┘
MEDIUMcore/mvcc/persistent_storage/logical_log.rs169//! ┌────────┬────────────────────┬──────────┬────────────┬─────────────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs171//! └────────┴────────────────────┴──────────┴────────────┴─────────────┘
MEDIUMcore/mvcc/persistent_storage/logical_log.rs181//! ┌──────┬──────┬────────────┬──────────┬──────┬────────────┬──────┬──────┬──────┬───────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs183//! └──────┴──────┴─────┼──────┴──────────┴──────┴──────┼─────┴──────┴──────┴──────┴───────┘
MEDIUMcore/mvcc/persistent_storage/logical_log.rs190//! ┌──────┬──────┬──────┐ ┌──────┬──────┬──────┬──────┐ ┌──────┬──────┬──────┬──────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs192//! └──────┴──────┴──────┘ └──────┴──────┴──────┴──────┘ └──────┴──────┴──────┴──────┘
MEDIUMcore/mvcc/persistent_storage/logical_log.rs201//! ┌───────────┬────┐ ┌───────────┬────┐ ┌───────────┬────┐
MEDIUMcore/mvcc/persistent_storage/logical_log.rs204//! └───────────┴────┘ └───────────┴────┘ └───────────┴────┘
MEDIUMcore/functions/printf.rs150// ── Coercion helpers ────────────────────────────────────────────
MEDIUMcore/functions/printf.rs199// ── Formatting helpers ──────────────────────────────────────────
MEDIUMcore/functions/printf.rs440 // ── Rounding (sqlite3.c:36968-36997) ──────────────────────────
MEDIUMcore/functions/printf.rs505 // ── Integer part (sqlite3.c:32581-32588) ───────────────────────
MEDIUMcore/functions/printf.rs525 // ── Fractional part (sqlite3.c:32591-32602) ────────────────────
MEDIUMcore/functions/printf.rs663// ── Per-specifier formatters ────────────────────────────────────
MEDIUMcore/functions/printf.rs960 // ── Exponential notation ──────────────────────────────────
MEDIUMcore/functions/printf.rs967 // ── Fixed-point notation ──────────────────────────────────
MEDIUMcore/functions/printf.rs1247// ── Main entry point ────────────────────────────────────────────
MEDIUMcore/functions/printf.rs1682 // ── Bug fix regression tests ────────────────────────────────────
MEDIUMcore/benches/struct_union_benchmark.rs69// ── SELECT one field: flat column vs struct field ────────────────────────
MEDIUMcore/benches/struct_union_benchmark.rs117// ── SELECT two fields: flat columns vs struct fields ────────────────────
MEDIUMcore/benches/struct_union_benchmark.rs163// ── WHERE filter: flat column vs struct field ───────────────────────────
MEDIUMcore/benches/struct_union_benchmark.rs212// ── INSERT: flat row vs struct_pack row ─────────────────────────────────
MEDIUMcore/benches/struct_union_benchmark.rs270// ── Union extract vs flat column read ──────────────────────────────────
MEDIUMcore/benches/struct_union_benchmark.rs309// ── Union tag scan vs typeof() on flat column ──────────────────────────
MEDIUMcore/benches/struct_union_benchmark.rs355// ── criterion wiring ───────────────────────────────────────────────────
MEDIUMtests/integration/stmt_journal.rs32// ──────────────────────────────────────────────────────────
MEDIUMtests/integration/stmt_journal.rs34// ──────────────────────────────────────────────────────────
MEDIUMtests/integration/stmt_journal.rs188// ──────────────────────────────────────────────────────────
MEDIUMtests/integration/stmt_journal.rs190// ──────────────────────────────────────────────────────────
MEDIUMtests/integration/stmt_journal.rs292// ──────────────────────────────────────────────────────────
MEDIUMtests/integration/stmt_journal.rs294// ──────────────────────────────────────────────────────────
MEDIUMtests/integration/stmt_journal.rs345// ──────────────────────────────────────────────────────────
MEDIUMtests/integration/stmt_journal.rs347// ──────────────────────────────────────────────────────────
43 more matches not shown…
Excessive Try-Catch Wrapping179 hits · 246 pts
SeverityFileLineSnippet
LOWtesting/sqltests/docs/adding-backends.md271 except Exception as e:
LOWtesting/sqltests/docs/adding-backends.md276 except Exception as e:
LOWtesting/antithesis/bank-test/anytime_validate.py8except Exception as e:
MEDIUMtesting/antithesis/bank-test/anytime_validate.py9 print(f"Error connecting to database: {e}")
LOWtesting/antithesis/bank-test/finally_validate.py8except Exception as e:
MEDIUMtesting/antithesis/bank-test/finally_validate.py9 print(f"Error connecting to database: {e}")
LOWtesting/antithesis/bank-test/eventually_validate.py8except Exception as e:
MEDIUMtesting/antithesis/bank-test/eventually_validate.py9 print(f"Error connecting to database: {e}")
LOWtesting/antithesis/bank-test/first_setup.py8except Exception as e:
MEDIUMtesting/antithesis/bank-test/first_setup.py9 print(f"Error connecting to database: {e}")
LOW…esis/bank-test/parallel_driver_generate_transaction.py21except Exception as e:
MEDIUM…esis/bank-test/parallel_driver_generate_transaction.py22 print(f"Error connecting to database: {e}")
LOW…sis/stress-composer/parallel_driver_schema_rollback.py12except Exception as e:
MEDIUM…sis/stress-composer/parallel_driver_schema_rollback.py13 print(f"Error connecting to database: {e}")
LOW…sis/stress-composer/parallel_driver_schema_rollback.py33except Exception as e:
LOW…is/stress-composer/parallel_driver_nested_savepoint.py13except Exception as e:
MEDIUM…is/stress-composer/parallel_driver_nested_savepoint.py14 print(f"Error connecting to database: {e}")
LOW…is/stress-composer/parallel_driver_nested_savepoint.py35except Exception as e:
LOW…esis/stress-composer/parallel_driver_integritycheck.py12except Exception as e:
MEDIUM…esis/stress-composer/parallel_driver_integritycheck.py13 print(f"Error connecting to database: {e}")
LOW…esis/stress-composer/parallel_driver_integritycheck.py32except Exception as e:
LOW…tithesis/stress-composer/parallel_driver_drop_index.py10except Exception as e:
MEDIUM…tithesis/stress-composer/parallel_driver_drop_index.py11 print(f"Error connecting to database: {e}")
LOW…tithesis/stress-composer/parallel_driver_drop_index.py19except Exception as e:
LOW…tithesis/stress-composer/parallel_driver_drop_index.py64except Exception as e:
LOW…thesis/stress-composer/parallel_driver_create_index.py12except Exception as e:
MEDIUM…thesis/stress-composer/parallel_driver_create_index.py13 print(f"Error connecting to database: {e}")
LOW…thesis/stress-composer/parallel_driver_create_index.py33except Exception as e:
LOW…ithesis/stress-composer/parallel_driver_alter_table.py11except Exception as e:
MEDIUM…ithesis/stress-composer/parallel_driver_alter_table.py12 print(f"Error connecting to database: {e}")
LOW…ithesis/stress-composer/parallel_driver_alter_table.py33except Exception as e:
LOW…ithesis/stress-composer/parallel_driver_alter_table.py137except Exception as e:
LOW…g/antithesis/stress-composer/parallel_driver_delete.py12except Exception as e:
MEDIUM…g/antithesis/stress-composer/parallel_driver_delete.py13 print(f"Error connecting to database: {e}")
LOW…g/antithesis/stress-composer/parallel_driver_delete.py36except Exception as e:
LOW…g/antithesis/stress-composer/parallel_driver_update.py12except Exception as e:
MEDIUM…g/antithesis/stress-composer/parallel_driver_update.py13 print(f"Error connecting to database: {e}")
LOW…g/antithesis/stress-composer/parallel_driver_update.py36except Exception as e:
LOW…esis/stress-composer/parallel_driver_wal_checkpoint.py9except Exception as e:
LOW…esis/stress-composer/parallel_driver_wal_checkpoint.py37except Exception as e:
LOW…ntithesis/stress-composer/parallel_driver_savepoint.py13except Exception as e:
MEDIUM…ntithesis/stress-composer/parallel_driver_savepoint.py14 print(f"Error connecting to database: {e}")
LOW…ntithesis/stress-composer/parallel_driver_savepoint.py35except Exception as e:
LOWtesting/antithesis/stress-composer/first_setup.py29except Exception as e:
MEDIUMtesting/antithesis/stress-composer/first_setup.py30 print(f"Error connecting to database: {e}")
LOWtesting/antithesis/stress-composer/first_setup.py39except Exception as e:
MEDIUMtesting/antithesis/stress-composer/first_setup.py40 print(f"Error connecting to database: {e}")
LOW…thesis/stress-composer/parallel_driver_create_table.py12except Exception as e:
MEDIUM…thesis/stress-composer/parallel_driver_create_table.py13 print(f"Error connecting to database: {e}")
LOW…thesis/stress-composer/parallel_driver_create_table.py22except Exception as e:
LOW…thesis/stress-composer/parallel_driver_create_table.py138 except Exception as e:
LOW…antithesis/stress-composer/parallel_driver_rollback.py12except Exception as e:
MEDIUM…antithesis/stress-composer/parallel_driver_rollback.py13 print(f"Error connecting to database: {e}")
LOW…antithesis/stress-composer/parallel_driver_rollback.py32except Exception as e:
LOW…tithesis/stress-composer/parallel_driver_drop_table.py10except Exception as e:
MEDIUM…tithesis/stress-composer/parallel_driver_drop_table.py11 print(f"Error connecting to database: {e}")
LOW…tithesis/stress-composer/parallel_driver_drop_table.py28except Exception as e:
LOW…g/antithesis/stress-composer/parallel_driver_insert.py12except Exception as e:
MEDIUM…g/antithesis/stress-composer/parallel_driver_insert.py13 print(f"Error connecting to database: {e}")
LOW…g/antithesis/stress-composer/parallel_driver_insert.py32except Exception as e:
119 more matches not shown…
Hyper-Verbose Identifiers151 hits · 112 pts
SeverityFileLineSnippet
LOW…is/stress-composer/parallel_driver_nested_savepoint.py46def random_values_with_large_blobs():
LOW…ntithesis/stress-composer/parallel_driver_savepoint.py46def random_values_with_large_blobs():
LOWtesting/antithesis/stress-composer/helper_utils.py6def generate_random_identifier(type: str, num: int):
LOWtesting/sqlright/crash_reports/lib/database.py228 def update_session_crash_count(self, session_id: int):
LOWtesting/sqlright/crash_reports/lib/executor.py22 def test_crash_against_tursodb(self, sql_content: str) -> Dict[str, Any]:
LOWtesting/sqlright/crash_reports/lib/executor.py84 def test_crash_against_sqlite(self, sql_content: str) -> Dict[str, Any]:
LOWtesting/cli_tests/constraint.py348def regression_test_update_single_key(limbo: TestTursoShell):
LOWtesting/cli_tests/memory.py127def test_multi_way_hash_joins(turso: TestTursoShell):
LOWtesting/cli_tests/memory.py184def test_hash_join_with_index_preference(turso: TestTursoShell):
LOWtesting/cli_tests/memory.py208def test_hash_join_star_pattern_fallback(turso: TestTursoShell):
LOWtesting/cli_tests/memory.py228def test_hash_join_outer_join_exclusion(turso: TestTursoShell):
LOWtesting/cli_tests/mvcc.py15def test_create_table_with_mvcc():
LOWtesting/cli_tests/cli_test_cases.py97def test_switch_back_to_in_memory():
LOWtesting/cli_tests/cli_test_cases.py163def test_multi_line_single_line_comments_succession():
LOWtesting/cli_tests/cli_test_cases.py232def test_import_csv_create_table_from_header():
LOWtesting/cli_tests/cli_test_cases.py278def test_update_with_limit_and_offset():
LOWtesting/cli_tests/cli_test_cases.py294def test_insert_default_values():
LOWtesting/cli_tests/cli_test_cases.py336def test_copy_memory_db_to_file():
LOWtesting/cli_tests/cli_test_cases.py374def test_tables_with_attached_db():
LOWscripts/update-version.py237def create_git_commit_and_tag(version):
LOWscripts/merge-pr.py109def strip_pr_template_from_body(body: str, template_path=".github/pull_request_template.md") -> str:
LOWscripts/corruption_bisecter.py21def run_sql_and_do_integrity_check(
LOWscripts/corruption-debug-tools/find_corrupt_frame.py61def binary_search_corrupt_frame(db_path: str, wal_path: str, verbose: bool = False) -> int:
LOWbindings/react-native/src/Database.ts41function getReservedBytesForCipher(encryption: EncryptionOpts | undefined): number {
LOWbindings/python/tests/test_database_sync_aio.py127async def test_partial_sync_segment_size():
LOWbindings/python/tests/test_database_sync_aio.py157async def test_partial_sync_prefetch():
LOWbindings/python/tests/test_database.py1338def test_executemany_requires_dml(provider):
LOWbindings/python/tests/test_database.py1347def test_execute_multiple_statements_prohibited(provider):
LOWbindings/python/tests/test_database.py1356def test_description_none_after_insert(provider):
LOWbindings/python/tests/test_database.py1366def test_rowcount_select_is_minus_one(provider):
LOWbindings/python/tests/test_database.py1606def test_named_params_reused_placeholder(provider):
LOWbindings/python/tests/test_database.py1615def test_named_params_extra_key_ignored(provider):
LOWbindings/python/tests/test_database.py1624def test_executemany_named_params_dicts(provider):
LOWbindings/python/tests/test_database.py63def test_fetchall_select_all_users(provider, setup_database):
LOWbindings/python/tests/test_database.py76def test_fetchall_select_user_ids(provider):
LOWbindings/python/tests/test_database.py89def test_in_memory_fetchone_select_all_users(provider):
LOWbindings/python/tests/test_database.py124def test_fetchone_select_all_users(provider):
LOWbindings/python/tests/test_database.py141def test_fetchone_select_max_user_id(provider):
LOWbindings/python/tests/test_database.py244def test_cursor_rowcount_insert(provider):
LOWbindings/python/tests/test_database.py256def test_cursor_rowcount_update(provider):
LOWbindings/python/tests/test_database.py269def test_cursor_rowcount_delete(provider):
LOWbindings/python/tests/test_database.py344def test_connection_executemany(provider):
LOWbindings/python/tests/test_database.py357def test_connection_executescript(provider):
LOWbindings/python/tests/test_database.py425def test_executemany_with_parameters(provider):
LOWbindings/python/tests/test_database.py471def test_insert_returning_partial_fetch(provider):
LOWbindings/python/tests/test_database.py491def test_conflict_clause_ignore(provider):
LOWbindings/python/tests/test_database.py506def test_conflict_clause_replace(provider):
LOWbindings/python/tests/test_database.py521def test_conflict_clause_rollback(provider):
LOWbindings/python/tests/test_database.py556def test_alter_table_add_column(provider):
LOWbindings/python/tests/test_database.py856def test_transaction_begin_commit(provider):
LOWbindings/python/tests/test_database.py873def test_transaction_begin_rollback(provider):
LOWbindings/python/tests/test_database.py890def test_multiple_cursors_same_connection(provider):
LOWbindings/python/tests/test_database.py908def test_cursor_description_before_execute(provider):
LOWbindings/python/tests/test_database.py923def test_cursor_arraysize_default(provider):
LOWbindings/python/tests/test_database.py1118def test_is_not_null_operator(provider):
LOWbindings/python/tests/test_database.py1189def test_upper_lower_functions(provider):
LOWbindings/python/tests/test_database.py1249def test_create_table_if_not_exists(provider):
LOWbindings/python/tests/test_database.py1263def test_drop_table_if_exists(provider):
LOWbindings/python/tests/test_database.py1377def test_cursor_setinput_output_size_noop(provider):
LOWbindings/python/tests/test_database.py1387def test_custom_row_factory_callable(provider):
91 more matches not shown…
Cross-Language Confusion24 hits · 86 pts
SeverityFileLineSnippet
HIGHtesting/cli_tests/extensions.py78 turso.run_test_fn(f".load {extension_path}", null)
HIGHtesting/cli_tests/extensions.py90 turso.run_test_fn("SELECT regexp_substr('the year is unknow', '[0-9]+');", null)
HIGHtesting/cli_tests/extensions.py113 null,
HIGHtesting/cli_tests/extensions.py179 null,
HIGHtesting/cli_tests/extensions.py444 null,
HIGHtesting/cli_tests/extensions.py454 null,
HIGHtesting/cli_tests/extensions.py457 turso.run_test_fn("insert into t values ('other', 'value');", null)
HIGHtesting/cli_tests/extensions.py470 null,
HIGHtesting/cli_tests/extensions.py480 null,
HIGHtesting/cli_tests/extensions.py486 turso.run_test_fn("update t set value = 'updated' where key = 'key33';", null)
HIGHtesting/cli_tests/extensions.py497 turso.run_test_fn("update t set value = 'updated2';", null)
HIGHtesting/cli_tests/extensions.py506 turso.run_test_fn("delete from t limit 96;", null, "can delete 96 rows")
HIGHtesting/cli_tests/extensions.py508 turso.run_test_fn("update t set key = '100' where 1;", null, "where clause evaluates properly")
HIGHtesting/cli_tests/extensions.py790 null,
HIGHtesting/cli_tests/extensions.py818 turso.run_test_fn("DROP TABLE csv;", null, "Drop CSV table")
HIGHexamples/python/sync_example.py70 conn.push()
HIGHbindings/python/tests/test_database_sync_aio.py65 await conn.push()
HIGHbindings/python/tests/test_database_sync_aio.py92 await conn.push()
HIGHbindings/python/tests/test_sqlalchemy.py458 sync.push()
HIGHbindings/python/tests/test_database_sync.py65 conn.push()
HIGHbindings/python/tests/test_database_sync.py91 conn.push()
HIGHbindings/python/turso/sqlalchemy/dialect.py509 sync.push() # Push local changes
HIGHbindings/python/turso/sqlalchemy/dialect.py693 sync.push()
HIGHbindings/python/turso/sqlalchemy/__init__.py30 sync.push() # Push local changes
Unused Imports86 hits · 82 pts
SeverityFileLineSnippet
LOWscripts/corruption-debug-tools/lib/__init__.py7
LOWscripts/corruption-debug-tools/lib/__init__.py7
LOWscripts/corruption-debug-tools/lib/__init__.py7
LOWscripts/corruption-debug-tools/lib/__init__.py12
LOWscripts/corruption-debug-tools/lib/__init__.py12
LOWscripts/corruption-debug-tools/lib/__init__.py12
LOWscripts/corruption-debug-tools/lib/__init__.py12
LOWscripts/corruption-debug-tools/lib/__init__.py12
LOWscripts/corruption-debug-tools/lib/__init__.py12
LOWscripts/corruption-debug-tools/lib/__init__.py20
LOWscripts/corruption-debug-tools/lib/__init__.py20
LOWscripts/corruption-debug-tools/lib/__init__.py20
LOWscripts/corruption-debug-tools/lib/__init__.py20
LOWscripts/corruption-debug-tools/lib/__init__.py20
LOWscripts/corruption-debug-tools/lib/__init__.py20
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWscripts/corruption-debug-tools/lib/__init__.py28
LOWbindings/python/turso/lib_aio.py1
LOWbindings/python/turso/lib.py1
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/__init__.py5
LOWbindings/python/turso/lib_sync.py1
LOWbindings/python/turso/lib_sync_aio.py1
LOWbindings/python/turso/aio/__init__.py1
LOWbindings/python/turso/aio/__init__.py1
LOWbindings/python/turso/aio/__init__.py1
LOWbindings/python/turso/aio/sync/__init__.py1
LOWbindings/python/turso/aio/sync/__init__.py1
LOWbindings/python/turso/aio/sync/__init__.py1
LOWbindings/python/turso/aio/sync/__init__.py1
LOWbindings/python/turso/aio/sync/__init__.py7
LOWbindings/python/turso/sqlalchemy/dialect.py9
LOWbindings/python/turso/sqlalchemy/__init__.py33
LOWbindings/python/turso/sqlalchemy/__init__.py33
26 more matches not shown…
Verbosity Indicators49 hits · 76 pts
SeverityFileLineSnippet
LOWcore/incremental/compiler.rs2054 // We need to check if it's true (non-zero)
LOWcore/translate/trigger_exec.rs709 // For UPDATE OF, we need to check if any of the specified columns
LOWcore/translate/trigger_exec.rs752 // For UPDATE OF, we need to check if any of the specified columns
LOWcore/translate/alter.rs2451 // We need to check if the column exists in the table being renamed
LOWcore/translate/expr/translator.rs232 // If LHS is NULL, we need to check if ephemeral is empty first.
LOWcore/storage/btree.rs5678 // Step 1: Move cursor to the largest key in the left subtree.
LOWcore/storage/btree.rs5746 // Step 2: Replace the cell in the parent (interior) page.
LOWcore/storage/btree.rs5765 // Step 3: Delete the predecessor cell from the leaf page.
LOWcore/storage/btree.rs8219 // otherwise, we need to check if we have enough space
LOWcore/vdbe/execute.rs12314 // Ephemeral tables have their own pager, so we need to check if this is an
LOWcore/mvcc/database/tests.rs11174 // Step 1: Create many tables, insert data, checkpoint
LOWcore/mvcc/database/tests.rs11187 // Step 2: Restart (simulates server redeploy)
LOWcore/mvcc/database/tests.rs11190 // Step 3: Create more tables + insert into old tables, then checkpoint
LOWcore/mvcc/database/tests.rs11207 // Step 4: Checkpoint - all tables get positive root pages, log truncated
LOWcore/mvcc/database/tests.rs11210 // Step 5: More writes after checkpoint (un-checkpointed, in the log)
LOWcore/mvcc/database/tests.rs11224 // Step 6: Restart again - log replay should not panic
LOWcore/mvcc/database/tests.rs12756 // Step 1: open normally so PRAGMA journal_mode=mvcc creates the logical log.
LOWcore/mvcc/database/tests.rs12778 // Step 3: re-open with the busy-on-log_tx storage wrapper.
LOWcore/mvcc/database/tests.rs12808 // Step 3: open a CONCURRENT tx, do an INSERT, then arm log_tx Busy.
LOWcore/mvcc/database/tests.rs12824 // Step 4: from another CONCURRENT tx, do an INSERT; the INSERT should go through.
LOWtests/integration/storage/header_version.rs304 // Step 1: Create a WAL mode database with rusqlite
LOWtests/integration/storage/header_version.rs307 // Step 2: Open with limbo WITHOUT MVCC to create WAL data, then close without checkpointing
LOWtests/integration/storage/header_version.rs341 // Step 3: Reopen with MVCC enabled and try to switch via PRAGMA
LOWtests/integration/storage/header_version.rs413 // Step 1: Create a WAL mode database and convert to MVCC
LOWtests/integration/storage/header_version.rs416 // Step 2: Open and switch to MVCC mode via PRAGMA, then add some data
LOWtests/integration/storage/header_version.rs449 // Step 3: Reopen and switch to WAL mode via PRAGMA
LOWtests/integration/query_processing/encryption.rs608 // Step 2: re-open with correct key (this uses the DATABASE_MANAGER cache)
LOWtests/integration/query_processing/encryption.rs644 // Step 3: Opening with wrong key succeeds, but reading data fails with decryption error
LOWtests/integration/query_processing/encryption.rs684 // Step 4: Opening without encryption options should fail immediately
LOWtests/integration/query_processing/encryption.rs706 // Step 5: verify correct key still works after wrong key attempt
LOWtests/fuzz/journal_mode.rs131 // Step 1: Insert a row in MVCC mode
LOWtests/fuzz/journal_mode.rs136 // Step 2: Switch to WAL (checkpoints the row to B-tree)
LOWtests/fuzz/journal_mode.rs148 // Step 3: Switch back to MVCC (creates new MvStore, row only in B-tree)
LOWtests/fuzz/journal_mode.rs161 // Step 4: UPDATE the row
LOWtests/fuzz/journal_mode.rs174 // Step 5: DELETE the row
LOWtests/fuzz/journal_mode.rs182 // Step 6: Switch to WAL - this triggers checkpoint
LOWtests/fuzz/journal_mode.rs232 // Step 1: Create a proper WAL database using SQLite first
LOWtests/fuzz/journal_mode.rs245 // Step 2: Open the database with Limbo
LOWtests/fuzz/journal_mode.rs264 // Step 3: Create SQLite in-memory database for comparison
LOW…ting/differential-oracle/fuzzer/custom_types_fuzzer.rs2217 // Step 1: INSERT
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts47 // Step 1: Get WAL info
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts54 // Step 2: Find corrupting frame
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts57 // Step 3: Run integrity check
LOWscripts/run-sqlancer.sh116# Step 1: Build Limbo JDBC driver if needed
LOWscripts/run-sqlancer.sh155# Step 2: Clone/update SQLancer
LOWscripts/run-sqlancer.sh168# Step 3: Add/update Limbo provider
LOWscripts/run-sqlancer.sh200# Step 4: Patch pom.xml to use Limbo JAR if not already done
LOWscripts/run-sqlancer.sh223# Step 5: Build SQLancer
LOWscripts/run-sqlancer.sh227# Step 6: Run SQLancer
Self-Referential Comments17 hits · 47 pts
SeverityFileLineSnippet
MEDIUMdocs/language-reference/book/print.html9364# Create an encrypted database
MEDIUMtesting/antithesis/stress-composer/first_setup.py105 # Create a composite index if table has multiple columns
MEDIUM…thesis/stress-composer/parallel_driver_create_table.py99 # Create the table
MEDIUMtesting/system/gen-database.py10# Create the user table
MEDIUMexamples/python/encryption.py30 # Create an encrypted database
MEDIUMexamples/python/encryption.py41 # Create a table and insert sensitive data
MEDIUMscripts/merge-pr.py204 # Create a temporary file for the commit message
MEDIUM.github/workflows/release.yml266 # Create a GitHub Release while uploading all files to it
MEDIUMbindings/python/tests/test_database.py33 # Create a new database file
MEDIUMbindings/python/tests/test_database_aio.py26 # Create a new database file
MEDIUMbindings/python/turso/lib_aio.py39 # Create the blocking connection inside the worker thread once
MEDIUMbindings/python/turso/lib_aio.py339 # Create a connector that opens a blocking Connection using the existing driver.
MEDIUMperf/connection/gen-database.py22 # Create the specified number of tables
MEDIUMperf/connection/rusqlite/gen-database.py22 # Create the specified number of tables
MEDIUMperf/connection/limbo/gen-database.py22 # Create the specified number of tables
MEDIUMperf/latency/rusqlite/gen-database.py17# Create the user table
MEDIUMperf/latency/limbo/gen-database.py17# Create the user table
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippet
HIGHperf/connection/gen-database.py0generate sqlite databases with specified number of tables for benchmarking.
HIGHperf/connection/rusqlite/gen-database.py0generate sqlite databases with specified number of tables for benchmarking.
HIGHperf/connection/limbo/gen-database.py0generate sqlite databases with specified number of tables for benchmarking.
HIGHperf/connection/gen-database.py0create table if not exists {table_name} ( id integer primary key, name text, value integer, created_at timestamp default
HIGHperf/connection/rusqlite/gen-database.py0create table if not exists {table_name} ( id integer primary key, name text, value integer, created_at timestamp default
HIGHperf/connection/limbo/gen-database.py0create table if not exists {table_name} ( id integer primary key, name text, value integer, created_at timestamp default
Deep Nesting25 hits · 25 pts
SeverityFileLineSnippet
LOWtesting/antithesis/stress-composer/helper_utils.py10
LOWtesting/sqlright/crash_reports/query_crashes.py289
LOWtesting/sqlright/crash_reports/lib/scanner.py12
LOWtesting/sqlright/crash_reports/lib/scanner.py175
LOWtesting/cli_tests/constraint.py370
LOWtesting/cli_tests/write.py143
LOWtesting/cli_tests/test_turso_cli.py30
LOWexamples/python/concurrent_writes.py24
LOWscripts/update-version.py105
LOWscripts/release-status.py39
LOWscripts/release-status.py120
LOWscripts/corruption_bisecter.py67
LOWscripts/compare-divan-std-turso.py139
LOWscripts/corruption-debug-tools/page_info.py28
LOWscripts/corruption-debug-tools/page_diff.py22
LOWscripts/corruption-debug-tools/track_rowid.py26
LOWscripts/corruption-debug-tools/page_history.py27
LOWscripts/corruption-debug-tools/lib/record.py82
LOWscripts/corruption-debug-tools/lib/record.py114
LOWscripts/corruption-debug-tools/lib/record.py186
LOWscripts/corruption-debug-tools/lib/record.py225
LOWbindings/python/tests/utils.py25
LOWbindings/python/turso/lib_sync.py107
LOWbindings/python/turso/lib_sync.py227
LOWbindings/python/turso/lib_sync.py278
AI Slop Vocabulary9 hits · 24 pts
SeverityFileLineSnippet
MEDIUMdeny.toml5# Include all targets for comprehensive checking
MEDIUMcore/translate/display.rs608// Definitely not perfect yet
MEDIUMcore/translate/emitter/mod.rs766 /// utilize the same limit register, but it is initialized only once.
MEDIUMcore/mvcc/database/tests.rs1392#[ignore = "Needs a dedicated bootstrap harness that can create header=MVCC + missing metadata + torn short log atomical
MEDIUMcore/mvcc/persistent_storage/logical_log.rs3488 /// Why this matters: Edge-case frame shapes must remain parseable to keep format handling robust.
MEDIUMtests/integration/storage/header_version.rs518/// This ensures mode switching is robust and doesn't corrupt data
MEDIUMtests/fuzz/mod.rs324 // because this is the only way to utilize an index efficiently for seeking. This is called the "left-prefix rul
MEDIUMcli/app.rs106 #[clap(long, help = "Start MVCC concurrent transaction harness")]
LOWparser/src/lexer.rs183#[derive(Clone, PartialEq, Eq, Debug)] // do not derive Copy for Token, just use .clone() when needed
Fake / Example Data18 hits · 21 pts
SeverityFileLineSnippet
LOWcore/benches/json_benchmark.rs42 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers an
LOWcore/benches/json_benchmark.rs42 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers an
LOWcore/benches/json_benchmark.rs42 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers an
LOWcore/benches/json_benchmark.rs42 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers an
LOWcore/benches/json_benchmark.rs42 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers an
LOWcore/benches/json_benchmark.rs68 "street": "123 Main St",
LOWcore/benches/json_benchmark.rs705 "name": "Jane Doe",
LOWserverless/javascript/README.md60 "INSERT INTO users (email) VALUES ('user@example.com')",
LOWserverless/javascript/README.md61 "INSERT INTO users (email) VALUES ('admin@example.com')",
LOWserverless/javascript/README.md92 "INSERT INTO users (email) VALUES ('user@example.com')",
LOWserverless/javascript/README.md93 "INSERT INTO users (email) VALUES ('admin@example.com')",
LOWserverless/javascript/src/statement.ts158 * const result = await stmt.run(['John Doe', 'john.doe@example.com']);
LOWdocs/manual.md1134UPDATE users SET name='John Doe' WHERE id=1;
LOWdocs/language-reference/book/print.html4458INSERT INTO customers VALUES (1, 'Alice', 'alice@example.com', '555-0100');
LOWdocs/language-reference/book/print.html5552INSERT INTO contacts VALUES ('Bob', '555-1234', NULL);
LOWdocs/language-reference/book/print.html5602INSERT INTO contacts VALUES ('Bob', '555-1234', NULL);
LOWdocs/language-reference/book/print.html7785INSERT INTO contacts VALUES (1, 'Alice', '["555-0100","555-0101"]');
LOWdocs/language-reference/book/print.html7786INSERT INTO contacts VALUES (2, 'Bob', '["555-0200"]');
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALsql_generation/model/query/select.rs344 where_clause: Some(self.body.select.where_clause.0.clone().into_boxed()),
CRITICALcore/mvcc/database/checkpoint_state_machine.rs682 version.0.row.id.row_id.clone(),
Redundant / Tautological Comments8 hits · 11 pts
SeverityFileLineSnippet
LOW…thesis/stress-composer/parallel_driver_create_index.py79 # Check if this combination already has an index
LOWtesting/sqlright/crash_reports/lib/scanner.py197 # Check if file still exists (may have been deleted)
LOWtesting/sqlright/crash_reports/lib/database.py65 # Check if finding_type column exists on crashes table
LOWscripts/install-sqlite3.sh98 # Check if already installed
LOWscripts/corruption-debug-tools/find_corrupt_frame.py84 # Check if full WAL is actually corrupt
LOWscripts/corruption-debug-tools/verify_stale.py123 # Check if it's close
LOWscripts/corruption-debug-tools/verify_stale.py139 # Check if corrupt looks like stale + insertions
LOWbindings/python/turso/lib.py664 # Set description to None
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGHbindings/python/turso/sqlalchemy/dialect.py670 Get the underlying turso.sync.ConnectionSync from a SQLAlchemy connection. This provides access to sync-specif
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippet
LOWextensions/csv/src/lib.rs9//! ## Example usage:
LOWscripts/clean_interactions.sh20# Usage:
LOWscripts/diff.sh4# Usage:
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWcore/storage/wal.rs3211 // don't forget to release the write-lock if