Skip to content

Commit a2d7eef

Browse files
author
flow-php
committed
1 parent 4f5c786 commit a2d7eef

File tree

839 files changed

+6768
-3029
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

839 files changed

+6768
-3029
lines changed

aggregations/aggregating_functions/average/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/aggregating_functions/first/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/aggregating_functions/last/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/aggregating_functions/max/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/aggregating_functions/min/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/aggregating_functions/sum/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/grouping/group_by/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/grouping/group_by_sum/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

assets/codemirror/completions/dsl-6bf07e06591b9d61c59fcea4fddc1d29.js renamed to assets/codemirror/completions/dsl-dc00cffdc96dc4a96e4e625f6758fe89.js

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* CodeMirror Completer for Flow PHP DSL Functions
33
*
4-
* Total functions: 612
4+
* Total functions: 615
55
*
66
* This completer provides autocompletion for all Flow PHP DSL functions:
77
* - Extractors (flow-extractors)
@@ -1136,6 +1136,24 @@ const dslFunctions = [
11361136
},
11371137
apply: snippet("\\Flow\\ETL\\DSL\\chunks_from(" + "$" + "{" + "1:extractor" + "}" + ", " + "$" + "{" + "2:chunk_size" + "}" + ")"),
11381138
boost: 10
1139+
}, {
1140+
label: "close_cursor",
1141+
type: "function",
1142+
detail: "flow\u002Ddsl\u002Dhelpers",
1143+
info: () => {
1144+
const div = document.createElement("div")
1145+
div.innerHTML = `
1146+
<div style="font-family: 'Fira Code', 'JetBrains Mono', monospace; margin-bottom: 8px;">
1147+
<span class=\"fn-name\">close_cursor</span><span class=\"fn-operator\">(</span><span class=\"fn-type\">string</span> <span class=\"fn-param\">$cursorName</span> <span class=\"fn-operator\">=</span> <span class=\"fn-default\">null</span><span class=\"fn-operator\">)</span> <span class=\"fn-operator\">:</span> <span class=\"fn-return\">CloseCursorFinalStep</span>
1148+
</div>
1149+
<div style="color: #8b949e; font-size: 13px;">
1150+
Close a cursor.<br>Example: close_cursor(\'my_cursor\')<br>Produces: CLOSE my_cursor<br>Example: close_cursor() - closes all cursors<br>Produces: CLOSE ALL<br>@param null|string $cursorName Cursor to close, or null to close all
1151+
</div>
1152+
`
1153+
return div
1154+
},
1155+
apply: snippet("\\Flow\\PostgreSql\\DSL\\close_cursor(" + "$" + "{" + "1:cursorName" + "}" + ")"),
1156+
boost: 10
11391157
}, {
11401158
label: "cluster",
11411159
type: "function",
@@ -2519,6 +2537,24 @@ const dslFunctions = [
25192537
},
25202538
apply: snippet("\\Flow\\ETL\\Adapter\\Doctrine\\dbal_from_query(" + "$" + "{" + "1:connection" + "}" + ", " + "$" + "{" + "2:query" + "}" + ", " + "$" + "{" + "3:parameters" + "}" + ", " + "$" + "{" + "4:types" + "}" + ")"),
25212539
boost: 10
2540+
}, {
2541+
label: "declare_cursor",
2542+
type: "function",
2543+
detail: "flow\u002Ddsl\u002Dhelpers",
2544+
info: () => {
2545+
const div = document.createElement("div")
2546+
div.innerHTML = `
2547+
<div style="font-family: 'Fira Code', 'JetBrains Mono', monospace; margin-bottom: 8px;">
2548+
<span class=\"fn-name\">declare_cursor</span><span class=\"fn-operator\">(</span><span class=\"fn-type\">string</span> <span class=\"fn-param\">$cursorName</span><span class=\"fn-operator\">,</span> <span class=\"fn-type\">SelectFinalStep|SqlQuery|string</span> <span class=\"fn-param\">$query</span><span class=\"fn-operator\">)</span> <span class=\"fn-operator\">:</span> <span class=\"fn-return\">DeclareCursorOptionsStep</span>
2549+
</div>
2550+
<div style="color: #8b949e; font-size: 13px;">
2551+
Declare a server-side cursor for a query.<br>Cursors must be declared within a transaction and provide memory-efficient<br>iteration over large result sets via FETCH commands.<br>Example with query builder:<br> declare_cursor(\'my_cursor\', select(star())->from(table(\'users\')))->noScroll()<br> Produces: DECLARE my_cursor NO SCROLL CURSOR FOR SELECT * FROM users<br>Example with raw SQL:<br> declare_cursor(\'my_cursor\', \'SELECT * FROM users WHERE active = true\')->withHold()<br> Produces: DECLARE my_cursor NO SCROLL CURSOR WITH HOLD FOR SELECT * FROM users WHERE active = true<br>@param string $cursorName Unique cursor name<br>@param SelectFinalStep|SqlQuery|string $query Query to iterate over
2552+
</div>
2553+
`
2554+
return div
2555+
},
2556+
apply: snippet("\\Flow\\PostgreSql\\DSL\\declare_cursor(" + "$" + "{" + "1:cursorName" + "}" + ", " + "$" + "{" + "2:query" + "}" + ")"),
2557+
boost: 10
25222558
}, {
25232559
label: "definition_from_array",
25242560
type: "function",
@@ -3173,6 +3209,24 @@ const dslFunctions = [
31733209
},
31743210
apply: snippet("\\Flow\\PostgreSql\\DSL\\explain(" + "$" + "{" + "1:query" + "}" + ")"),
31753211
boost: 10
3212+
}, {
3213+
label: "fetch",
3214+
type: "function",
3215+
detail: "flow\u002Ddsl\u002Dhelpers",
3216+
info: () => {
3217+
const div = document.createElement("div")
3218+
div.innerHTML = `
3219+
<div style="font-family: 'Fira Code', 'JetBrains Mono', monospace; margin-bottom: 8px;">
3220+
<span class=\"fn-name\">fetch</span><span class=\"fn-operator\">(</span><span class=\"fn-type\">string</span> <span class=\"fn-param\">$cursorName</span><span class=\"fn-operator\">)</span> <span class=\"fn-operator\">:</span> <span class=\"fn-return\">FetchCursorBuilder</span>
3221+
</div>
3222+
<div style="color: #8b949e; font-size: 13px;">
3223+
Fetch rows from a cursor.<br>Example: fetch(\'my_cursor\')->forward(100)<br>Produces: FETCH FORWARD 100 my_cursor<br>Example: fetch(\'my_cursor\')->all()<br>Produces: FETCH ALL my_cursor<br>@param string $cursorName Cursor to fetch from
3224+
</div>
3225+
`
3226+
return div
3227+
},
3228+
apply: snippet("\\Flow\\PostgreSql\\DSL\\fetch(" + "$" + "{" + "1:cursorName" + "}" + ")"),
3229+
boost: 10
31763230
}, {
31773231
label: "files",
31783232
type: "function",

assets/importmap.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"type": "js"
109109
},
110110
"\/assets\/codemirror\/completions\/dsl.js": {
111-
"path": "\/assets\/codemirror\/completions\/dsl-6bf07e06591b9d61c59fcea4fddc1d29.js",
111+
"path": "\/assets\/codemirror\/completions\/dsl-dc00cffdc96dc4a96e4e625f6758fe89.js",
112112
"type": "js"
113113
},
114114
"\/assets\/codemirror\/completions\/dataframe.js": {

0 commit comments

Comments
 (0)