元編程參考文件

資料庫結果

16 個節點

本頁內容 16

建立資料庫結果

函數

What a statement gave back: the rows it read, and what it changed.

簽名
建立資料庫結果 -> Database Result
    列: 文字陣列
    行: 任意陣列陣列
    受影響行數: 大整數
    最後插入行 ID: 大整數
DatabaseResult DatabaseResult(
    string[] Columns,
    object[][] Rows,
    long RowsAffected,
    long LastInsertRowId)

參數

名稱型別預設值說明
列文字陣列—The names of the columns, in order. Empty for a statement that reads nothing.
行任意陣列陣列—The rows, each one value per column: text, a whole number (System.Int64), a real number (System.Double), bytes, or null.
受影響行數大整數—How many rows the statement inserted, changed or deleted.
最後插入行 ID大整數—The row id of the last row inserted on this connection.

返回

資料庫結果Database Result
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

分解

函數

此節點沒有文件說明。

簽名
分解(Database Result: Database Result) -> (列: 文字陣列, 行: 任意陣列陣列, 受影響行數: 大整數, 最後插入行 ID: 大整數)
void Deconstruct(
    DatabaseResult Database Result,
    out string[] Columns,
    out object[][] Rows,
    out long RowsAffected,
    out long LastInsertRowId)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

列文字陣列
行任意陣列陣列
受影響行數大整數
最後插入行 ID大整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

相等

函數

此節點沒有文件說明。

過載 1/2

簽名
相等(Database Result: Database Result, 物件: 任意) -> 真否
bool Equals(DatabaseResult Database Result, object obj)

參數

名稱型別預設值說明
Database ResultDatabase Result—
物件任意—

返回

結果真否

過載 2/2

簽名
相等 -> 真否
    Database Result: Database Result
    另一個: Database Result
bool Equals(
    DatabaseResult Database Result,
    DatabaseResult other)

參數

名稱型別預設值說明
Database ResultDatabase Result—
另一個Database Result—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

首行轉為 JSON

函數

The first row as a JSON object, one property per column - what an endpoint that reads one record sends - or null when there is no row, which a handler answers with 404.

簽名
首行轉為 JSON(Database Result: Database Result) -> 文字
string FirstToJson(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

列

函數

The names of the columns, in order. Empty for a statement that reads nothing.

簽名
列(Database Result: Database Result) -> 文字陣列
string[] Columns(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果文字陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

最後插入的行 ID

函數

The row id of the last row inserted on this connection.

簽名
最後插入的行 ID(Database Result: Database Result) -> 大整數
long LastInsertRowId(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果大整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

記錄

函數

Each row as a dictionary from column name to value - the shape a graph reads a field from by name.

簽名
記錄(Database Result: Database Result) -> 文字到任意的字典列表
List<Dictionary<string, object>> Records(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果文字到任意的字典列表
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

行數

函數

How many rows came back.

簽名
行數(Database Result: Database Result) -> 整數
int RowCount(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

行

函數

The rows, each one value per column: text, a whole number (System.Int64), a real number (System.Double), bytes, or null.

簽名
行(Database Result: Database Result) -> 任意陣列陣列
object[][] Rows(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果任意陣列陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

受影響行數

函數

How many rows the statement inserted, changed or deleted.

簽名
受影響行數(Database Result: Database Result) -> 大整數
long RowsAffected(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果大整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

標量值

函數

The first value of the first row, or null when there is none - the answer to a SELECT count(*).

簽名
標量值(Database Result: Database Result) -> 任意
object Scalar(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果任意
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

取得雜湊碼

函數

此節點沒有文件說明。

簽名
取得雜湊碼(Database Result: Database Result) -> 整數
int GetHashCode(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

轉為 JSON

函數

The rows as a JSON array of objects, one property per column - what an endpoint answering with JSON sends.

簽名
轉為 JSON(Database Result: Database Result) -> 文字
string ToJson(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

轉為文字

函數

The result in one line.

簽名
轉為文字(Database Result: Database Result) -> 文字
string ToString(DatabaseResult Database Result)

參數

名稱型別預設值說明
Database ResultDatabase Result—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

相等運算

函數

此節點沒有文件說明。

簽名
相等運算(左側: Database Result, 右側: Database Result) -> 真否
bool op_Equality(DatabaseResult left, DatabaseResult right)

參數

名稱型別預設值說明
左側Database Result—
右側Database Result—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用

不等運算

函數

此節點沒有文件說明。

簽名
不等運算(左側: Database Result, 右側: Database Result) -> 真否
bool op_Inequality(DatabaseResult left, DatabaseResult right)

參數

名稱型別預設值說明
左側Database Result—
右側Database Result—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
資料庫結果
所屬包
網路應用