Skip to main content

select

Function select 

Source
pub fn select(table_name: &str) -> SelectQuery<'_>
Expand description

Creates a SELECT query builder for the specified table

§Examples

use switchy_database::query::select;

let query = select("users")
    .columns(&["id", "name"])
    .execute(db)
    .await?;