initial stubs for ast::Select

This commit is contained in:
pedrocarlo
2025-05-26 18:18:00 -03:00
parent 2ac2990b4c
commit 1dc73bc49e
3 changed files with 43 additions and 3 deletions

View File

@@ -0,0 +1 @@
mod select;

View File

@@ -0,0 +1,36 @@
use crate::{
ast,
to_sql_string::{ToSqlContext, ToSqlString},
};
impl ToSqlString for ast::Select {
fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String {
let mut ret = String::new();
ret
}
}
impl ToSqlString for ast::SelectBody {
fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String {
let mut ret = String::new();
ret
}
}
impl ToSqlString for ast::OneSelect {
fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String {
let mut ret = String::new();
match self {
ast::OneSelect::Select(select) => ret,
// TODO: come back here when we implement ToSqlString for Expr
ast::OneSelect::Values(values) => ret,
}
}
}
impl ToSqlString for ast::SelectInner {
fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String {
let mut ret = String::new();
ret
}
}