Class MySqlCRUDScriptQueryHandler
Executes MySql CRUD script-based queries
Inheritance
System.Object
MySqlCRUDScriptQueryHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.MySql.dll
Syntax
public sealed class MySqlCRUDScriptQueryHandler : CRUDQueryHandler<MySqlDataStore>, INamed
Constructors
MySqlCRUDScriptQueryHandler(MySqlDataStore, QuerySource)
Declaration
public MySqlCRUDScriptQueryHandler(MySqlDataStore store, QuerySource source)
Parameters
Methods
Execute(ICRUDQueryExecutionContext, Query, Boolean)
Declaration
public override RowsetBase Execute(ICRUDQueryExecutionContext context, Query query, bool oneDoc = false)
Parameters
Returns
Overrides
ExecuteAsync(ICRUDQueryExecutionContext, Query, Boolean)
Declaration
public override Task<RowsetBase> ExecuteAsync(ICRUDQueryExecutionContext context, Query query, bool oneDoc = false)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<RowsetBase> |
|
Overrides
ExecuteWithoutFetch(ICRUDQueryExecutionContext, Query)
Declaration
public override int ExecuteWithoutFetch(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Overrides
ExecuteWithoutFetchAsync(ICRUDQueryExecutionContext, Query)
Declaration
public override Task<int> ExecuteWithoutFetchAsync(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
Overrides
GetSchema(ICRUDQueryExecutionContext, Query)
Declaration
public override Schema GetSchema(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Overrides
GetSchemaAsync(ICRUDQueryExecutionContext, Query)
Declaration
public override Task<Schema> GetSchemaAsync(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Schema> |
|
Overrides
GetSchemaForQuery(String, Query, MySqlDataReader, QuerySource, out Schema.FieldDef[])
Gets schema from reader taking Query.ResultDocType in consideration
Declaration
public static Schema GetSchemaForQuery(string target, Query query, MySqlDataReader reader, QuerySource qSource, out Schema.FieldDef[] toLoad)
Parameters
Returns
GetSchemaFromReader(String, QuerySource, MySqlDataReader)
Gets CRUD schema from MySqlReader per particular QuerySource.
If source is null then all columns from reader are copied.
Note: this code was purposely made provider specific because other providers may treat some nuances differently
Declaration
public static Schema GetSchemaFromReader(string name, QuerySource source, MySqlDataReader reader)
Parameters
Returns
OpenCursor(ICRUDQueryExecutionContext, Query)
Declaration
public override Cursor OpenCursor(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Overrides
OpenCursorAsync(ICRUDQueryExecutionContext, Query)
Declaration
public override Task<Cursor> OpenCursorAsync(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Cursor> |
|
Overrides
PopulateDoc(MySqlCRUDQueryExecutionContext, Type, Schema, Schema.FieldDef[], MySqlDataReader)
Reads data from reader into rowset. the reader is NOT disposed
Declaration
public static Doc PopulateDoc(MySqlCRUDQueryExecutionContext context, Type tDoc, Schema schema, Schema.FieldDef[] toLoad, MySqlDataReader reader)
Parameters
Returns
PopulateParameters(MySqlCommand, Query)
Populates MySqlCommand with parameters from CRUD Query object
Note: this code was purposely made provider specific because other providers may treat some nuances differently
Declaration
public void PopulateParameters(MySqlCommand cmd, Query query)
Parameters
PopulateRowset(MySqlCRUDQueryExecutionContext, MySqlDataReader, String, Query, QuerySource, Boolean)
Reads data from reader into rowset. the reader is NOT disposed
Declaration
public static Rowset PopulateRowset(MySqlCRUDQueryExecutionContext context, MySqlDataReader reader, string target, Query query, QuerySource qSource, bool oneDoc)
Parameters
Returns
Implements
Extension Methods