Class Session
Represents a single server session.
Implements
System.IDisposable
Namespace: MySqlX.XDevAPI
Assembly: MySql.Data.dll
Version: 9.3.0
Syntax
public class Session : BaseSession, IDisposable
Methods
GetCurrentSchema()
Executes a query in the database to get the current schema.
Declaration
public Schema GetCurrentSchema()
Returns
SetCurrentSchema(String)
Sets the schema in the database.
Declaration
public void SetCurrentSchema(string schema)
Parameters
Type | Name | Description |
---|---|---|
System. |
schema | The schema name to be set. |
SQL(String)
Returns a Sql
Declaration
public SqlStatement SQL(string sql)
Parameters
Type | Name | Description |
---|---|---|
System. |
sql | The SQL to execute. |
Returns
Type | Description |
---|---|
Sql |
A Sql |
Implements
System.IDisposable