C# Class TShockAPI.DB.GenericQueryCreator

Datei anzeigen Open project: NyxStudios/TShock

Protected Properties

Property Type Description
rand System.Random

Public Methods

Method Description
AlterTable ( SqlTable from, SqlTable to ) : string

Alter a table from source to destination

CreateTable ( SqlTable table ) : string
DeleteRow ( string table, List wheres ) : string
InsertValues ( string table, List values ) : string
ReadColumn ( string table, List wheres ) : string
RenameTable ( string from, string to ) : string
UpdateValue ( string table, List values, List wheres ) : string

Protected Methods

Method Description
BuildWhere ( List wheres ) : string
EscapeTableName ( string table ) : string

Method Details

AlterTable() public method

Alter a table from source to destination
public AlterTable ( SqlTable from, SqlTable to ) : string
from SqlTable Must have name and column names. Column types are not required
to SqlTable Must have column names and column types.
return string

BuildWhere() protected static method

protected static BuildWhere ( List wheres ) : string
wheres List
return string

CreateTable() public abstract method

public abstract CreateTable ( SqlTable table ) : string
table SqlTable
return string

DeleteRow() public method

public DeleteRow ( string table, List wheres ) : string
table string
wheres List
return string

EscapeTableName() protected abstract method

protected abstract EscapeTableName ( string table ) : string
table string
return string

InsertValues() public method

public InsertValues ( string table, List values ) : string
table string
values List
return string

ReadColumn() public method

public ReadColumn ( string table, List wheres ) : string
table string
wheres List
return string

RenameTable() public abstract method

public abstract RenameTable ( string from, string to ) : string
from string
to string
return string

UpdateValue() public method

public UpdateValue ( string table, List values, List wheres ) : string
table string
values List
wheres List
return string

Property Details

rand protected_oe static_oe property

protected static Random,System rand
return System.Random