pub struct Asterisk;
Expand description
Asterisk (“*”)
Express the asterisk without table prefix.
§Examples
use sea_query::{tests_cfg::*, *};
let query = Query::select()
.column(Asterisk)
.from(Char::Table)
.to_owned();
assert_eq!(
query.to_string(MysqlQueryBuilder),
r#"SELECT * FROM `character`"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder),
r#"SELECT * FROM "character""#
);
assert_eq!(
query.to_string(SqliteQueryBuilder),
r#"SELECT * FROM "character""#
);
Express the asterisk with table prefix.
Examples
use sea_query::{tests_cfg::*, *};
let query = Query::select()
.column((Char::Table, Asterisk))
.from(Char::Table)
.to_owned();
assert_eq!(
query.to_string(MysqlQueryBuilder),
r#"SELECT `character`.* FROM `character`"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder),
r#"SELECT "character".* FROM "character""#
);
assert_eq!(
query.to_string(SqliteQueryBuilder),
r#"SELECT "character".* FROM "character""#
);
Trait Implementations§
source§impl IntoColumnRef for Asterisk
impl IntoColumnRef for Asterisk
fn into_column_ref(self) -> ColumnRef
impl Copy for Asterisk
Auto Trait Implementations§
impl Freeze for Asterisk
impl RefUnwindSafe for Asterisk
impl Send for Asterisk
impl Sync for Asterisk
impl Unpin for Asterisk
impl UnwindSafe for Asterisk
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)