Documentation
¶
Index ¶
- Constants
- type ADBMSSql
- func (cn *ADBMSSql) CloseConnection() error
- func (cn *ADBMSSql) DB() *bun.DB
- func (cn *ADBMSSql) GetAddress() string
- func (cn *ADBMSSql) GetConnectionTimeout() int
- func (cn *ADBMSSql) GetEncrypt() string
- func (cn *ADBMSSql) GetSandboxAdapter() (aconns.ISBAdapter, error)
- func (cn *ADBMSSql) OpenConnection() error
- func (cn *ADBMSSql) SQLDB() *sql.DB
- func (cn *ADBMSSql) Test() (bool, aconns.TestStatus, error)
- func (cn *ADBMSSql) Validate() error
- type ADBMSSqls
Constants ¶
View Source
const ( ADAPTERTYPE_MSSQL aconns.AdapterType = "mssql" MSSQL_DEFAULT_PORT = 1433 MSSQL_CONNECTION_TIMEOUT = 30 MSSQL_ENCRYPT_FALSE = "false" MSSQL_TRUSTSERVERCERTIFICATE_TRUE = "true" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADBMSSql ¶
type ADBMSSql struct {
aconns.ADBAdapterBase
ConnectionTimeout int `json:"connectionTimeout,omitempty"`
Encrypt string `json:"encrypt,omitempty"`
TrustServerCertificate string `json:"trustServerCertificate,omitempty"`
// contains filtered or unexported fields
}
ADBMSSql represents an MSSQL database adapter.
func (*ADBMSSql) CloseConnection ¶
CloseConnection closes the MSSQL connection.
func (*ADBMSSql) GetAddress ¶
GetAddress returns the address of the MSSQL server.
func (*ADBMSSql) GetConnectionTimeout ¶
GetConnectionTimeout returns the connection timeout.
func (*ADBMSSql) GetEncrypt ¶
GetEncrypt returns the encryption setting.
func (*ADBMSSql) GetSandboxAdapter ¶
func (cn *ADBMSSql) GetSandboxAdapter() (aconns.ISBAdapter, error)
GetSandboxAdapter returns a sandbox adapter for the MSSQL database. It ensures that the ADBMSSql instance and its SQLDB are properly initialized.
func (*ADBMSSql) OpenConnection ¶
OpenConnection opens a connection to the MSSQL database.
Click to show internal directories.
Click to hide internal directories.