Skip to main content

TABLESPACE

Constant TABLESPACE 

Source
pub const TABLESPACE: TableMarker;
Expand description

Specifies a tablespace for the table.

ยงExample

use drizzle::postgres::prelude::*;

#[PostgresTable(TABLESPACE = "fast_storage")]
struct HighPerfTable {
    #[column(PRIMARY)]
    id: i32,
}

// Views also support TABLESPACE:
// #[PostgresView(MATERIALIZED, TABLESPACE = "fast_storage")]
// struct ActiveUsers { id: i32 }

See: https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-TABLESPACE