Click or drag to resize

Session Class

Represents a single server session.
Inheritance Hierarchy

Namespace:  MySqlX.XDevAPI
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.22
Syntax
public class Session : BaseSession

The Session type exposes the following members.

Properties
  NameDescription
Public propertyDefaultSchema
Gets the default schema provided when creating the session.
(Inherited from BaseSession.)
Public propertySchema
Gets the currently active schema.
(Inherited from BaseSession.)
Public propertySettings
Gets the connection settings for this session.
(Inherited from BaseSession.)
Public propertyUri
Gets the connection uri representation of the connection options provided during the creation of the session.
(Inherited from BaseSession.)
Top
Methods
  NameDescription
Public methodClose
Closes this session or releases it to the pool.
(Inherited from BaseSession.)
Public methodCommit
Commits the current transaction.
(Inherited from BaseSession.)
Public methodCreateSchema
Creates a schema/database with the given name.
(Inherited from BaseSession.)
Public methodDispose
Disposes the current object. Code added to correctly implement the disposable pattern.
(Inherited from BaseSession.)
Protected methodDispose(Boolean)
Disposes the current object. Disposes of the managed state if the flag is set to true.
(Inherited from BaseSession.)
Public methodDropSchema
Drops the database/schema with the given name.
(Inherited from BaseSession.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCurrentSchema
Executes a query in the database to get the current schema.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetSchema
Gets the schema with the given name.
(Inherited from BaseSession.)
Public methodGetSchemas
Gets a list of schemas (or databases) in this session.
(Inherited from BaseSession.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodParseConnectionData
Parses the connection data.
(Inherited from BaseSession.)
Public methodReleaseSavepoint
Removes the named savepoint from the set of savepoints within the current transaction.
(Inherited from BaseSession.)
Public methodRollback
Rolls back the current transaction.
(Inherited from BaseSession.)
Public methodRollbackTo
Rolls back a transaction to the named savepoint without terminating the transaction.
(Inherited from BaseSession.)
Public methodSetCurrentSchema
Sets the schema in the database.
Public methodSetSavepoint
Sets a transaction savepoint with an autogenerated name.
(Inherited from BaseSession.)
Public methodSetSavepoint(String)
Sets a named transaction savepoint.
(Inherited from BaseSession.)
Public methodSQL
Returns a SqlStatement object that can be used to execute the given SQL.
Public methodStartTransaction
Starts a new transaction.
(Inherited from BaseSession.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_client (Inherited from BaseSession.)
Top
See Also