MySQL data extensions
MySQL
01 Syntax
Microsoft.VisualBasic.Data.Framework.DataSetExtensions.MySQL
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| DumpToTable | 1 | 提供了一个与SQL DUMP功能类似的拓展方法,这个函数会自动的将目标集合写入所指定的文件夹之中的某一个csv文件。 这个csv文件的文件名为泛型类型的Class名称 |
| SQLEntityData | 1 | 将SQL脚本之中的数据转换为Excel数据框模型,这个函数仅对简单的SQL脚本有效, 例如仅包含有数值类型的,字符串之中不包含有逗号,双引号之类的csv格式控制符号, 假若字段之中的值是比较复杂的字符串,则这个函数就无能为力了 |
| SQLData | 1 | 加入是以Dump模型运行的话,标题只会被解析一次,其他的行数据的标题都会使用第一行的数据的标题, 这个函数只适用于INSERT INTO数据插入语句 |
| ImportsMySQLDump | 1 | |
| INSERT_LineParser | 1 | Handle the MySQL dump |
| SQLValues | 1 | Parse the VALUES data from the INSERT INTo SQL statement. |
| SQLFields | 1 | Gets the fields list from INSERT INTO SQL. |
03 Members
DumpToTable``1(
IEnumerable(Of ``0), String, Encodings)提供了一个与SQL DUMP功能类似的拓展方法,这个函数会自动的将目标集合写入所指定的文件夹之中的某一个csv文件。 这个csv文件的文件名为泛型类型的Class名称
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of ``0) | - |
handle$ | String | Directory or file name( |
encoding | Encodings | - |
SQLEntityData(
String, String, Boolean)将SQL脚本之中的数据转换为Excel数据框模型,这个函数仅对简单的SQL脚本有效, 例如仅包含有数值类型的,字符串之中不包含有逗号,双引号之类的csv格式控制符号, 假若字段之中的值是比较复杂的字符串,则这个函数就无能为力了
Parameters
| Name | Type | Description |
|---|---|---|
SQL$ | String | - |
primary$ | String | - |
dumpMode | Boolean | - |
SQLData(
String, Boolean)加入是以Dump模型运行的话,标题只会被解析一次,其他的行数据的标题都会使用第一行的数据的标题, 这个函数只适用于INSERT INTO数据插入语句
Parameters
| Name | Type | Description |
|---|---|---|
handle | String | SQL文本或者文件的路径 |
dumpMode | Boolean | - |
ImportsMySQLDump(
String)Parameters
| Name | Type | Description |
|---|---|---|
sql$ | String | The file path of the MySQL dump *.sql file. This sql file should only contains the |
INSERT_LineParser(
String)Handle the MySQL dump
Parameters
| Name | Type | Description |
|---|---|---|
insert$ | String | |
SQLValues(
String)Parse the VALUES data from the INSERT INTo SQL statement.
Parameters
| Name | Type | Description |
|---|---|---|
insertSQL$ | String | - |
SQLFields(
String)Gets the fields list from INSERT INTO SQL.
Parameters
| Name | Type | Description |
|---|---|---|
insertSQL$ | String | - |