C# Class TShockAPI.DB.GenericQueryCreator

Afficher le fichier Open project: NyxStudios/TShock

Protected Properties

Свойство Type Description
rand System.Random

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
BuildWhere ( List wheres ) : string
EscapeTableName ( string table ) : string

Method Details

AlterTable() public méthode

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.
Résultat string

BuildWhere() protected static méthode

protected static BuildWhere ( List wheres ) : string
wheres List
Résultat string

CreateTable() public abstract méthode

public abstract CreateTable ( SqlTable table ) : string
table SqlTable
Résultat string

DeleteRow() public méthode

public DeleteRow ( string table, List wheres ) : string
table string
wheres List
Résultat string

EscapeTableName() protected abstract méthode

protected abstract EscapeTableName ( string table ) : string
table string
Résultat string

InsertValues() public méthode

public InsertValues ( string table, List values ) : string
table string
values List
Résultat string

ReadColumn() public méthode

public ReadColumn ( string table, List wheres ) : string
table string
wheres List
Résultat string

RenameTable() public abstract méthode

public abstract RenameTable ( string from, string to ) : string
from string
to string
Résultat string

UpdateValue() public méthode

public UpdateValue ( string table, List values, List wheres ) : string
table string
values List
wheres List
Résultat string

Property Details

rand protected_oe static_oe property

protected static Random,System rand
Résultat System.Random