Skip to main content

table

Function table 

Source
pub async fn table(db: &DB, raw: &str)
Expand description

Fetch and display table data

Fetches data from a specific table in the database and prints it to the console.

§Arguments

  • db - A reference to the database connection.
  • raw - The raw command input string.

§Example

let db = DB::connect("database_url").await?;
db::table(&db, "users").await;