메소드 | 설명 | |
---|---|---|
CreateTable ( IDbAdapter adapter, |
Creates a table on a remote database server and indexes the table.
|
|
InitializeTable ( IDbAdapter adapter, |
Uses an in-memory schema to initialize a database table according to a set of initialization options.
|
|
PurgeExpiredData ( IDbAdapter adapter, string tableName, int interval ) : void | ||
UpdateSchemaToMatchTable ( IDbAdapter adapter, |
Updates a schema to 'match' an existing database table by copying it.
|
|
UpdateTableToMatchSchema ( IDbAdapter adapter, |
Updates an existing database table to 'match' a schema by adding any missing columns.
|
메소드 | 설명 | |
---|---|---|
AddDbIndexesToMatch ( IDbAdapter adapter, |
Adds indexes to the database if the existing indexes do not match the dictionary passed in.
|
|
BuildIndexName ( string tableName, string columnName ) : string |
Builds the index name from the table name and column name.
|
|
CreateIndexes ( IDbAdapter adapter, |
Indexes a set of columns defined by the dictionary that is passed.
|
|
RemoveDBIndexesToMatch ( IDbAdapter adapter, |
Removes indexes from database if indexes are not in the dictionary.
|
|
UpdateIndexClusters ( IDbAdapter adapter, |
Updates whether or not indexes are clustered.
|
public static CreateTable ( IDbAdapter adapter, |
||
adapter | IDbAdapter | Open adapter to a database. |
schema | The schema of the table to create. | |
indexes | bool>.IDictionary | A dictionary that contains the indexes to create and whether the indexes are clustered. |
리턴 | bool |
public static InitializeTable ( IDbAdapter adapter, |
||
adapter | IDbAdapter | Open adapter to a database. |
schema | The schema to use to initialize. | |
tableInitializationOptions | A set of options to determine initialization behavior. | |
리턴 | void |
public static PurgeExpiredData ( IDbAdapter adapter, string tableName, int interval ) : void | ||
adapter | IDbAdapter | |
tableName | string | |
interval | int | |
리턴 | void |
public static UpdateSchemaToMatchTable ( IDbAdapter adapter, |
||
adapter | IDbAdapter | Open adapter to a database. |
schema | The schema to update. | |
리턴 | bool |
public static UpdateTableToMatchSchema ( IDbAdapter adapter, |
||
adapter | IDbAdapter | Open adapter to a database. |
schema | The schema to use to update the database. | |
리턴 | bool |