C# Class DataEditorX.Core.DataBase

SQLite 操作
Afficher le fichier Open project: 247321453/DataEditorX

Méthodes publiques

Méthode Description
CheckTable ( string db ) : bool
Command ( string DB ) : int

执行sql语句

Compression ( string db ) : void
CopyDB ( string DB, bool ignore ) : int

复制数据库

Create ( string Db ) : bool

创建数据库

DeleteDB ( string DB ) : int
GetDeleteSQL ( Card c ) : string

转换删除语句

GetInsertSQL ( Card c, bool ignore, bool hex = false ) : string

转换为插入语句

GetSelectSQL ( Card c ) : string
GetUpdateSQL ( Card c ) : string

转换为更新语句

Read ( string DB, bool reNewLine ) : Card[]
exportSql ( String file ) : void
findPack ( string db, long id ) : CardPack

Private Methods

Méthode Description
DataBase ( ) : System
ReadCard ( SQLiteDataReader reader, bool reNewLine ) : Card
Retext ( string text ) : string
toInt ( long l ) : string

Method Details

CheckTable() public static méthode

public static CheckTable ( string db ) : bool
db string
Résultat bool

Command() public static méthode

执行sql语句
public static Command ( string DB ) : int
DB string 数据库
Résultat int

Compression() public static méthode

public static Compression ( string db ) : void
db string
Résultat void

CopyDB() public static méthode

复制数据库
public static CopyDB ( string DB, bool ignore ) : int
DB string 复制到的数据库
ignore bool 是否忽略存在
Résultat int

Create() public static méthode

创建数据库
public static Create ( string Db ) : bool
Db string 新数据库路径
Résultat bool

DeleteDB() public static méthode

public static DeleteDB ( string DB ) : int
DB string
Résultat int

GetDeleteSQL() public static méthode

转换删除语句
public static GetDeleteSQL ( Card c ) : string
c Card 卡片密码
Résultat string

GetInsertSQL() public static méthode

转换为插入语句
public static GetInsertSQL ( Card c, bool ignore, bool hex = false ) : string
c Card 卡片数据
ignore bool
hex bool
Résultat string

GetSelectSQL() public static méthode

public static GetSelectSQL ( Card c ) : string
c Card
Résultat string

GetUpdateSQL() public static méthode

转换为更新语句
public static GetUpdateSQL ( Card c ) : string
c Card 卡片数据
Résultat string

Read() public static méthode

public static Read ( string DB, bool reNewLine ) : Card[]
DB string
reNewLine bool
Résultat Card[]

exportSql() public static méthode

public static exportSql ( String file ) : void
file String
Résultat void

findPack() public static méthode

public static findPack ( string db, long id ) : CardPack
db string
id long
Résultat CardPack