Skip to main content

Sql

Struct Sql 

Source
pub struct Sql { /* private fields */ }

Implementations§

Source§

impl Sql

Source

pub const fn new() -> Sql

Source

pub fn with_dialect(dialect: SqlDialect) -> Sql

Source

pub fn dialect(&self) -> SqlDialect

Source

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

Source

pub fn lower_with_details( &self, path: &RepoPath, source: &str, ) -> Result<SqlLowerOutput, LowerError>

Trait Implementations§

Source§

impl Clone for Sql

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Sql

Source§

impl Debug for Sql

Source§

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

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

impl Default for Sql

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for Sql

Source§

impl LanguagePlugin for Sql

Source§

fn extensions(&self) -> Vec<String>

Source§

fn known_dialects(&self) -> Vec<String>

Source§

fn lower( &self, path: &RepoPath, text: &str, dialect: Option<&str>, ) -> Result<FileModel, LowerError>

Source§

fn flagged_line_rules(&self) -> Vec<String>

Source§

fn reference_ranges(&self) -> Result<ReferenceRanges, LanguagePluginError>

Source§

fn has_hazard_rules(&self) -> bool

Source§

fn hazard_rules(&self) -> Vec<String>

Source§

fn has_scope_analysis(&self) -> bool

Source§

fn analyze_scope( &self, _package_root: &str, dialect: Option<&str>, artifacts: Vec<FileScopeArtifact>, ) -> Result<ScopeAnalysis, LanguagePluginError>

Source§

fn manifest_paths( &self, _repository_paths: &[RepoPath], ) -> Result<Vec<String>, LanguagePluginError>

Source§

fn analyze_manifests( &self, _manifests: Vec<Manifest>, ) -> Result<ManifestAnalysis, LanguagePluginError>

Source§

fn resolve_imports( &self, _repository_paths: &[RepoPath], _manifests: Vec<Manifest>, _requests: Vec<ImportRequest>, _package_profiles: &[PackageFrameworkProfiles], ) -> Result<Vec<Resolution>, LanguagePluginError>

Source§

fn entry_points( &self, _repository_paths: &[RepoPath], _manifests: Vec<Manifest>, ) -> Result<Vec<RepoPath>, LanguagePluginError>

Source§

fn known_framework_profiles(&self) -> Vec<String>

Source§

fn resolve_framework_profiles( &self, _package_root: &str, _files: &[RepoPath], _manifests: Vec<Manifest>, _selection: FrameworkProfileSelection, ) -> Result<FrameworkProfileResult, LanguagePluginError>

Source§

fn has_imports(&self) -> bool

Source§

impl PartialEq for Sql

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Sql

Auto Trait Implementations§

§

impl Forget for Sql

§

impl Freeze for Sql

§

impl Move for Sql

§

impl RefUnwindSafe for Sql

§

impl Send for Sql

§

impl Sync for Sql

§

impl Unpin for Sql

§

impl UnsafeUnpin for Sql

§

impl UnwindSafe for Sql

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> Resource for T
where T: 'static,

Source§

type Rep = Option<T>

The type which is actually stored in-memory for this resource. Read more
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.