Reorganization

This commit is contained in:
Yuriy Dupyn 2023-12-29 07:39:59 +01:00
parent f7a6cc2549
commit e9d3df7a22
10 changed files with 140 additions and 141 deletions

View file

@ -1,10 +1,11 @@
use bimap::BiMap;
use crate::type_system::{DbValue, DbType, IndexableDbValue};
use crate::base::{TableName, TableSchema, ColumnPosition, ColumnName, DbResult};
use crate::table::{Table, Row};
use crate::type_system::{Value, DbType, IndexableValue};
use crate::internals::schema::{TableName, TableSchema, ColumnName, DbResult};
use crate::internals::table::Table;
use crate::internals::row::{Row, ColumnPosition};
use crate::error::Error;
use crate::operation::{Operation, Condition, ColumnSelection};
use crate::column_index::ColumnIndex;
use crate::internals::column_index::ColumnIndex;
// Use `TablePosition` as index
@ -196,8 +197,8 @@ mod tests {
#[test]
fn test_insert_select_basic1() {
use DbValue::*;
use IndexableDbValue::*;
use Value::*;
use IndexableValue::*;
let mut state = State::new();
let users_schema = users_schema();
@ -231,8 +232,8 @@ mod tests {
#[test]
fn test_insert_select_basic2() {
use DbValue::*;
use IndexableDbValue::*;
use Value::*;
use IndexableValue::*;
use Operation::*;
use ColumnSelection::*;
use Condition::*;
@ -313,8 +314,8 @@ mod tests {
#[test]
fn test_delete() {
use DbValue::*;
use IndexableDbValue::*;
use Value::*;
use IndexableValue::*;
use Operation::*;
use ColumnSelection::*;
use Condition::*;
@ -369,8 +370,8 @@ mod tests {
pub fn example() {
use DbValue::*;
use IndexableDbValue::*;
use Value::*;
use IndexableValue::*;
use Operation::*;
use ColumnSelection::*;
use Condition::*;