Lightweight 0.20250904.0
Loading...
Searching...
No Matches
Lightweight::SqlConnectionDataSource Struct Reference

Represents a connection data source as a DSN, username, password, and timeout. More...

#include <SqlConnectInfo.hpp>

Public Member Functions

SqlConnectionString ToConnectionString () const
 
LIGHTWEIGHT_API auto operator<=> (SqlConnectionDataSource const &) const noexcept=default
 

Static Public Member Functions

static LIGHTWEIGHT_API SqlConnectionDataSource FromConnectionString (SqlConnectionString const &value)
 

Public Attributes

std::string datasource
 
std::string username
 
std::string password
 
std::chrono::seconds timeout { 5 }
 

Detailed Description

Represents a connection data source as a DSN, username, password, and timeout.

Definition at line 37 of file SqlConnectInfo.hpp.

Member Function Documentation

◆ ToConnectionString()

SqlConnectionString Lightweight::SqlConnectionDataSource::ToConnectionString ( ) const
inline

Definition at line 46 of file SqlConnectInfo.hpp.

Member Data Documentation

◆ datasource

std::string Lightweight::SqlConnectionDataSource::datasource

Definition at line 39 of file SqlConnectInfo.hpp.

◆ username

std::string Lightweight::SqlConnectionDataSource::username

Definition at line 40 of file SqlConnectInfo.hpp.

◆ password

std::string Lightweight::SqlConnectionDataSource::password

Definition at line 41 of file SqlConnectInfo.hpp.

◆ timeout

std::chrono::seconds Lightweight::SqlConnectionDataSource::timeout { 5 }

Definition at line 42 of file SqlConnectInfo.hpp.


The documentation for this struct was generated from the following file: