Skip to content

Commit

Permalink
fix(marco): unresolved import
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Oct 1, 2023
1 parent 1a85da4 commit 14dffe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "kip-sql"
version = "0.0.1-alpha.2"
version = "0.0.1-alpha.3"
edition = "2021"
authors = ["Kould <[email protected]>", "Xwg <[email protected]>"]
description = "build the SQL layer of KipDB database"
Expand Down
7 changes: 3 additions & 4 deletions src/marco/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
#[macro_export]
macro_rules! implement_from_tuple {
($struct_name:ident, ($($field_name:ident : $field_type:ty => $closure:expr),+)) => {
use crate::types::tuple::Tuple;
use crate::types::LogicalType;
use crate::types::value::DataValue;

impl From<Tuple> for $struct_name {
fn from(tuple: Tuple) -> Self {
fn try_get<T: 'static>(tuple: &Tuple, field_name: &str) -> Option<DataValue> {
Expand Down Expand Up @@ -61,6 +57,9 @@ macro_rules! implement_from_tuple {
mod test {
use std::sync::Arc;
use crate::catalog::{ColumnCatalog, ColumnDesc};
use crate::types::LogicalType;
use crate::types::tuple::Tuple;
use crate::types::value::DataValue;

fn build_tuple() -> Tuple {
let columns = vec![
Expand Down

0 comments on commit 14dffe4

Please sign in to comment.