Enum CommandType
- Namespace
- YndigoBlue.Velocity.Enums
- Assembly
- YndigoBlue.Velocity.dll
Specifies the type of database operation command to be executed.
public enum CommandType
Fields
AddRecord = 1Adds a single record to a table.
AddRecords = 2Adds multiple records to a table in a batch operation.
BeginTransaction = 3Begins a new database transaction.
BuildDatabase = 4Creates a complete database from a schema definition.
BuildSchema = 5Creates all tables, views, and constraints defined in a schema.
BuildTable = 6Creates a single table based on its definition.
CheckExists = 7Checks if a schema object (table, view, etc.) exists in the database.
Command = 8Base command type for generic command execution.
CommitTransaction = 9Commits the current transaction, making all changes permanent.
CreateColumn = 10Adds a new column to an existing table.
CreateConstraint = 11Creates a constraint on a table (primary key, foreign key, unique, or check).
CreateFullTextIndex = 12Creates a full-text index on one or more columns.
CreateIndex = 13Creates a standard index on one or more columns.
CreateSchema = 14Creates a new schema in the database.
CreateSpatialIndex = 15Creates a spatial index on geometry or geography columns.
CreateTable = 16Creates a new table in the database.
CreateView = 17Creates a database view.
Data = 18Generic data operation command.
DeleteRecords = 19Deletes one or more records from a table based on criteria.
DropConstraint = 20Removes a constraint from a table.
DropFullTextIndex = 21Removes a full-text index from the database.
DropIndex = 22Removes an index from a table.
DropSchema = 23Drops an entire schema from the database.
DropSpatialIndex = 24Removes a spatial index from the database.
DropTable = 25Drops a table from the database.
DropView = 26Drops a view from the database.
EmptyDatabase = 27Removes all schemas and tables from a database.
EmptySchema = 28Removes all tables from a specific schema.
ExportDatabase = 29Exports an entire database to configuration files and CSV data.
ExportData = 30Exports data from tables to CSV files.
ExportSchema = 31Exports a schema definition to an XML, JSON, or YAML file.
FullTextRetrieval = 32Retrieves documents from a full-text index.
FullTextSearch = 33Performs a full-text search query.
GetDatabaseInfo = 34Retrieves metadata information about the database.
GetScalar = 35Executes a query and returns a single scalar value.
ImportData = 36Imports data from CSV files into database tables.
Initialize = 37Initializes database connections and resources.
LoadDatabase = 38Loads the complete database schema metadata from the database.
LoadSchema = 39Loads a specific schema's metadata from the database.
ReadDatabase = 40Reads a database schema definition from a file.
ReadSchema = 41Reads a schema definition from an XML, JSON, or YAML file.
Retrieve = 42Executes a SELECT query to retrieve records.
RollbackTransaction = 43Rolls back the current transaction, discarding all changes.
RunSql = 44Executes a raw SQL statement against the database.
Search = 45Performs a search query with filtering criteria.
UpdateFullTextIndex = 46Updates a full-text index to include recent data changes.
UpdateRecords = 47Updates existing records in a table based on criteria.
UpdateSchema = 48Updates an existing schema by comparing it with a new definition.
WriteDatabase = 49Writes a database schema definition to a file.
WriteSchema = 50Writes a schema definition to an XML, JSON, or YAML file.
Remarks
Velocity uses a command pattern to encapsulate database operations. Each command type corresponds to a specific operation such as DDL (Data Definition Language), DML (Data Manipulation Language), or DQL (Data Query Language) actions.