Skip to main content

SqliteSyntaxFlag

Enum SqliteSyntaxFlag 

Source
#[repr(u32)]
pub enum SqliteSyntaxFlag {
Show 22 variants OmitAltertable = 0, OmitAnalyze = 1, OmitAttach = 2, OmitAutoincrement = 3, OmitCast = 4, OmitCompoundSelect = 5, OmitCte = 6, OmitExplain = 7, OmitForeignKey = 8, OmitGeneratedColumns = 9, OmitPragma = 10, OmitReindex = 11, OmitReturning = 12, OmitSubquery = 13, OmitTempdb = 14, OmitTrigger = 15, OmitVacuum = 16, OmitView = 17, OmitVirtualtable = 18, OmitWindowfunc = 19, EnableOrderedSetAggregates = 20, EnableUpdateDeleteLimit = 21,
}
Expand description

A parser-level compile-time feature flag for the SQLite dialect.

Each variant corresponds to a SYNQ_CFLAG_IDX_* constant in cflags.h. The discriminant equals the C compact index (0–21).

Pass a variant to crate::util::SqliteSyntaxFlags::has or crate::util::SqliteSyntaxFlags::with.

For the full 42-flag set use syntaqlite::util::SqliteFlag.

Variants§

§

OmitAltertable = 0

SQLITE_OMIT_ALTERTABLE

§

OmitAnalyze = 1

SQLITE_OMIT_ANALYZE

§

OmitAttach = 2

SQLITE_OMIT_ATTACH

§

OmitAutoincrement = 3

SQLITE_OMIT_AUTOINCREMENT

§

OmitCast = 4

SQLITE_OMIT_CAST

§

OmitCompoundSelect = 5

SQLITE_OMIT_COMPOUND_SELECT

§

OmitCte = 6

SQLITE_OMIT_CTE

§

OmitExplain = 7

SQLITE_OMIT_EXPLAIN

§

OmitForeignKey = 8

SQLITE_OMIT_FOREIGN_KEY

§

OmitGeneratedColumns = 9

SQLITE_OMIT_GENERATED_COLUMNS

§

OmitPragma = 10

SQLITE_OMIT_PRAGMA

§

OmitReindex = 11

SQLITE_OMIT_REINDEX

§

OmitReturning = 12

SQLITE_OMIT_RETURNING

§

OmitSubquery = 13

SQLITE_OMIT_SUBQUERY

§

OmitTempdb = 14

SQLITE_OMIT_TEMPDB

§

OmitTrigger = 15

SQLITE_OMIT_TRIGGER

§

OmitVacuum = 16

SQLITE_OMIT_VACUUM

§

OmitView = 17

SQLITE_OMIT_VIEW

§

OmitVirtualtable = 18

SQLITE_OMIT_VIRTUALTABLE

§

OmitWindowfunc = 19

SQLITE_OMIT_WINDOWFUNC

§

EnableOrderedSetAggregates = 20

SQLITE_ENABLE_ORDERED_SET_AGGREGATES

§

EnableUpdateDeleteLimit = 21

SQLITE_ENABLE_UPDATE_DELETE_LIMIT

Implementations§

Source§

impl SqliteSyntaxFlag

Source

pub fn name(self) -> &'static str

The canonical SQLITE_* flag name (e.g. "SQLITE_OMIT_WINDOWFUNC").

Source

pub fn from_name(s: &str) -> Option<Self>

Look up a parser flag by its canonical SQLITE_* name.

Returns None if s is not a known parser flag name.

Trait Implementations§

Source§

impl Clone for SqliteSyntaxFlag

Source§

fn clone(&self) -> SqliteSyntaxFlag

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SqliteSyntaxFlag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SqliteSyntaxFlag

Source§

fn eq(&self, other: &SqliteSyntaxFlag) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for SqliteSyntaxFlag

Source§

impl Eq for SqliteSyntaxFlag

Source§

impl StructuralPartialEq for SqliteSyntaxFlag

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.