mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
fmt
This commit is contained in:
@@ -438,7 +438,6 @@ impl Limbo {
|
||||
}
|
||||
|
||||
self.reset_input();
|
||||
|
||||
}
|
||||
|
||||
fn print_query_performance_stats(&mut self, start: Instant, stats: QueryStatistics) {
|
||||
|
||||
@@ -1309,7 +1309,7 @@ mod tests {
|
||||
],
|
||||
has_rowid: true,
|
||||
is_strict: false,
|
||||
has_autoincrement:false,
|
||||
has_autoincrement: false,
|
||||
unique_sets: None,
|
||||
};
|
||||
schema.add_btree_table(Arc::new(users_table));
|
||||
@@ -1345,7 +1345,7 @@ mod tests {
|
||||
],
|
||||
has_rowid: true,
|
||||
is_strict: false,
|
||||
has_autoincrement:false,
|
||||
has_autoincrement: false,
|
||||
unique_sets: None,
|
||||
};
|
||||
schema.add_btree_table(Arc::new(sales_table));
|
||||
@@ -3415,4 +3415,4 @@ mod tests {
|
||||
"Row should still exist with multiplicity 1"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -553,7 +553,7 @@ impl Schema {
|
||||
primary_key_columns: Vec::new(),
|
||||
has_rowid: true,
|
||||
is_strict: false,
|
||||
has_autoincrement:false,
|
||||
has_autoincrement: false,
|
||||
|
||||
unique_sets: None,
|
||||
})));
|
||||
|
||||
@@ -1322,12 +1322,11 @@ fn emit_autoincrement_logic(
|
||||
extra_amount: 0,
|
||||
});
|
||||
|
||||
let affinity_str = seq_table
|
||||
.columns
|
||||
.iter()
|
||||
.map(|col| col.affinity().aff_mask())
|
||||
.collect::<String>();
|
||||
|
||||
let affinity_str = seq_table
|
||||
.columns
|
||||
.iter()
|
||||
.map(|col| col.affinity().aff_mask())
|
||||
.collect::<String>();
|
||||
|
||||
program.emit_insn(Insn::MakeRecord {
|
||||
start_reg: record_start_reg,
|
||||
|
||||
@@ -549,7 +549,7 @@ fn parse_table(
|
||||
primary_key_columns: Vec::new(),
|
||||
has_rowid: true,
|
||||
is_strict: false,
|
||||
has_autoincrement:false,
|
||||
has_autoincrement: false,
|
||||
|
||||
unique_sets: None,
|
||||
});
|
||||
|
||||
@@ -183,7 +183,7 @@ pub fn translate_create_table(
|
||||
let index_regs =
|
||||
check_automatic_pk_index_required(&body, &mut program, tbl_name.name.as_str())?;
|
||||
if let Some(index_regs) = index_regs.as_ref() {
|
||||
if !schema.indexes_enabled() {
|
||||
if !schema.indexes_enabled() {
|
||||
bail_parse_error!("Constraints UNIQUE and PRIMARY KEY (unless INTEGER PRIMARY KEY) on table are not supported without indexes");
|
||||
}
|
||||
for index_reg in index_regs.clone() {
|
||||
@@ -194,7 +194,7 @@ pub fn translate_create_table(
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let table = schema.get_btree_table(SQLITE_TABLEID).unwrap();
|
||||
let sqlite_schema_cursor_id = program.alloc_cursor_id(CursorType::BTreeTable(table.clone()));
|
||||
program.emit_insn(Insn::OpenWrite {
|
||||
|
||||
@@ -75,7 +75,7 @@ pub fn translate_create_materialized_view(
|
||||
primary_key_columns: vec![], // Materialized views use implicit rowid
|
||||
has_rowid: true,
|
||||
is_strict: false,
|
||||
has_autoincrement:false,
|
||||
has_autoincrement: false,
|
||||
|
||||
unique_sets: None,
|
||||
});
|
||||
|
||||
@@ -386,7 +386,7 @@ pub fn parse_schema_rows(
|
||||
primary_key_columns: vec![],
|
||||
has_rowid: true,
|
||||
is_strict: false,
|
||||
has_autoincrement:false,
|
||||
has_autoincrement: false,
|
||||
|
||||
unique_sets: None,
|
||||
})));
|
||||
|
||||
Reference in New Issue
Block a user