Skip to main content

PragmaArgument

Trait PragmaArgument 

Source
pub trait PragmaArgument: RenderArgument { }
Available on crate feature __sqlite-shared only.
Expand description

A value written into a pragma statement, which takes no bind parameters.

Diesel renders every argument itself, so this trait cannot be implemented outside Diesel. A type of your own becomes an argument by converting into one with From.

Integers and bool are written as decimal integers. An Option<NonZeroU32> writes None as 0, which limit pragmas such as incremental_vacuum read as no limit.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PragmaArgument for Option<NonZeroU32>

Source§

impl PragmaArgument for bool

Source§

impl PragmaArgument for i8

Source§

impl PragmaArgument for i16

Source§

impl PragmaArgument for i32

Source§

impl PragmaArgument for i64

Source§

impl PragmaArgument for u8

Source§

impl PragmaArgument for u16

Source§

impl PragmaArgument for u32

Implementors§