pub struct EcpgBuilder { /* private fields */ }
Expand description
ecpg
is the PostgreSQL
embedded SQL preprocessor for C programs.
Implementations§
Source§impl EcpgBuilder
impl EcpgBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new EcpgBuilder
Sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new EcpgBuilder
from Settings
Sourcepub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
Location of the program binary
Sourcepub fn compatibility_mode<S: AsRef<OsStr>>(self, compatibility_mode: S) -> Self
pub fn compatibility_mode<S: AsRef<OsStr>>(self, compatibility_mode: S) -> Self
Set compatibility mode
Sourcepub fn header_file(self) -> Self
pub fn header_file(self) -> Self
Parse a header file
Sourcepub fn system_include_files(self) -> Self
pub fn system_include_files(self) -> Self
Parse system include files as well
Sourcepub fn directory<S: AsRef<OsStr>>(self, directory: S) -> Self
pub fn directory<S: AsRef<OsStr>>(self, directory: S) -> Self
Search DIRECTORY for include files
Sourcepub fn runtime_behavior<S: AsRef<OsStr>>(self, runtime_behavior: S) -> Self
pub fn runtime_behavior<S: AsRef<OsStr>>(self, runtime_behavior: S) -> Self
Specify run-time behavior
Sourcepub fn regression(self) -> Self
pub fn regression(self) -> Self
Run in regression testing mode
Sourcepub fn autocommit(self) -> Self
pub fn autocommit(self) -> Self
Turn on autocommit of transactions
Trait Implementations§
Source§impl Clone for EcpgBuilder
impl Clone for EcpgBuilder
Source§fn clone(&self) -> EcpgBuilder
fn clone(&self) -> EcpgBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CommandBuilder for EcpgBuilder
impl CommandBuilder for EcpgBuilder
Source§fn get_program(&self) -> &'static OsStr
fn get_program(&self) -> &'static OsStr
Get the program name
Source§fn get_program_dir(&self) -> &Option<PathBuf>
fn get_program_dir(&self) -> &Option<PathBuf>
Location of the program binary
Source§fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
Set an environment variable for the command
Source§fn get_program_file(&self) -> PathBuf
fn get_program_file(&self) -> PathBuf
Fully qualified path to the program binary
Source§impl Debug for EcpgBuilder
impl Debug for EcpgBuilder
Source§impl Default for EcpgBuilder
impl Default for EcpgBuilder
Source§fn default() -> EcpgBuilder
fn default() -> EcpgBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EcpgBuilder
impl RefUnwindSafe for EcpgBuilder
impl Send for EcpgBuilder
impl Sync for EcpgBuilder
impl Unpin for EcpgBuilder
impl UnwindSafe for EcpgBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more