Skip to main content

Pragma

Trait Pragma 

Source
pub trait Pragma: Sized {
    type Scope: PragmaScope;

    const NAME: &'static str;
}
Available on crate feature __sqlite-shared only.
Expand description

A pragma, named by NAME and scoped by Scope.

Required Associated Constants§

Source

const NAME: &'static str

The pragma name, written into the SQL unquoted.

A name that is empty or holds anything but ASCII letters, digits and underscores fails with Error::QueryBuilderError before reaching SQLite. Naming a pragma SQLite knows is up to the implementer, since SQLite ignores unknown ones.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Pragma for AutoVacuum

Source§

const NAME: &'static str = "auto_vacuum"

Source§

type Scope = PerSchema

Source§

impl Pragma for FreelistCount

Source§

const NAME: &'static str = "freelist_count"

Source§

type Scope = PerSchema

Source§

impl Pragma for IncrementalVacuum

Source§

const NAME: &'static str = "incremental_vacuum"

Source§

type Scope = PerSchema

Source§

impl Pragma for PageCount

Source§

const NAME: &'static str = "page_count"

Source§

type Scope = PerSchema