Skip to main content

table

Function table 

Source
pub fn table(name: &str) -> Expr
Expand description

Create a table reference expression.

The name string is split on . to determine qualification level:

  • "table" โ€“ unqualified table reference
  • "schema.table" โ€“ schema-qualified
  • "catalog.schema.table" โ€“ fully qualified with catalog

ยงExamples

use polyglot_sql::builder::table;

let t = table("my_schema.users");
assert_eq!(t.to_sql(), "my_schema.users");