Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/codegen/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn build_entity_id_expr(pk_columns: &[&str], table_name: &str, backend: Database
// No PK defined — fall back to internal row identifier.
match backend {
DatabaseBackend::SQLite => format!("{}.rowid", table_name),
DatabaseBackend::PostgreSQL => format!("{}::text", format!("{}.ctid", table_name)),
DatabaseBackend::PostgreSQL => format!("{}.ctid::text", table_name),
DatabaseBackend::MongoDB => "CAST(_id AS TEXT)".to_string(),
}
} else if pk_columns.len() == 1 {
Expand Down
14 changes: 0 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
#![forbid(unsafe_code)]
#![allow(
dead_code,
clippy::too_many_arguments,
clippy::manual_strip,
clippy::if_same_then_else,
clippy::vec_init_then_push,
clippy::upper_case_acronyms,
clippy::format_in_format_args,
clippy::enum_variant_names,
clippy::module_inception,
clippy::doc_lazy_continuation,
clippy::manual_clamp,
clippy::type_complexity
)]
// SPDX-License-Identifier: PMPL-1.0-or-later
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
//
Expand Down
22 changes: 1 addition & 21 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
#![allow(
dead_code,
clippy::too_many_arguments,
clippy::manual_strip,
clippy::if_same_then_else,
clippy::vec_init_then_push,
clippy::upper_case_acronyms,
clippy::format_in_format_args,
clippy::enum_variant_names,
clippy::module_inception,
clippy::doc_lazy_continuation,
clippy::manual_clamp,
clippy::type_complexity
)]
#![forbid(unsafe_code)]
// SPDX-License-Identifier: PMPL-1.0-or-later
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
Expand All @@ -31,13 +17,7 @@

use anyhow::Result;
use clap::{Parser, Subcommand};

mod abi;
mod codegen;
mod intercept;
mod manifest;
mod tier1;
mod tier2;
use verisimiser::{abi, codegen, manifest};

/// VeriSimiser — augment any database with VeriSimDB octad capabilities.
#[derive(Parser)]
Expand Down
7 changes: 2 additions & 5 deletions src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,8 @@ pub fn init_manifest(database: &str) -> Result<()> {
anyhow::bail!("{} already exists — remove it first to reinitialise", path);
}

let enable_simulation = if database == "sqlite" {
"false"
} else {
"false"
};
// Simulation is unimplemented across all backends; placeholder "false".
let enable_simulation = "false";

let template = format!(
r#"# SPDX-License-Identifier: PMPL-1.0-or-later
Expand Down
Loading