File tree Expand file tree Collapse file tree 10 files changed +27
-18
lines changed
data_writing/database_upsert
postgresql-insert-options
example/data_writing/database_upsert Expand file tree Collapse file tree 10 files changed +27
-18
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,10 @@ <h2 class="my-2 text-2xl font-semibold tracking-wide">Loads</h2>
215215</div>
216216
217217 <section id="changelog" class="py-10 px-2 sm:px-4 mx-auto max-w-screen-xl">
218- <h2><a id="flow-php-unreleased---2025-02-21 " href="#content-unreleased---2025-02-21 " class="mr-2" aria-hidden="true" title="Permalink">#</a>[Unreleased] - 2025-02-21 </h2>
218+ <h2><a id="flow-php-unreleased---2025-02-23 " href="#content-unreleased---2025-02-23 " class="mr-2" aria-hidden="true" title="Permalink">#</a>[Unreleased] - 2025-02-23 </h2>
219219<h3><a id="flow-php-added" href="#content-added" class="mr-2" aria-hidden="true" title="Permalink">#</a>Added</h3>
220220<ul>
221+ <li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1468">#1468</a> - <strong>Nix - for local development environment</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/norberttech">@norberttech</a></li>
221222<li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1492">#1492</a> - <strong>Respect limit/offset from query builder in dbal query loader</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/norberttech">@norberttech</a></li>
222223<li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1491">#1491</a> - <strong>Added missing tests to string functions</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/f-lapinski">@f-lapinski</a></li>
223224<li><a rel="noopener noreferrer" target="_blank" href="https://github.com/flow-php/flow/pull/1488">#1488</a> - <strong>DataStream builder</strong> - <a rel="noopener noreferrer" target="_blank" href="https://github.com/norberttech">@norberttech</a></li>
Original file line number Diff line number Diff line change @@ -372,7 +372,9 @@ <h1><a id="flow-php-upsert-insert-or-update-data-into-a-database" href="#content
372372
373373declare(strict_types=1);
374374
375- use function Flow\ETL\Adapter\Doctrine\{from_dbal_query, postgresql_insert_options, to_dbal_table_insert};
375+ use function Flow\ETL\Adapter\Doctrine\{from_dbal_query,
376+ sqlite_insert_options,
377+ to_dbal_table_insert};
376378use function Flow\ETL\DSL\{data_frame, from_array, to_stream};
377379use Doctrine\DBAL\DriverManager;
378380use Doctrine\DBAL\Schema\{Column, Table, UniqueConstraint};
@@ -431,7 +433,7 @@ <h1><a id="flow-php-upsert-insert-or-update-data-into-a-database" href="#content
431433 'driver' => 'pdo_sqlite',
432434 ]),
433435 'orders',
434- postgresql_insert_options (conflict_columns: ['order_id'])
436+ sqlite_insert_options (conflict_columns: ['order_id'])
435437 )
436438 )
437439 // second insert that normally would fail due to Integrity constraint violation
@@ -442,7 +444,7 @@ <h1><a id="flow-php-upsert-insert-or-update-data-into-a-database" href="#content
442444 'driver' => 'pdo_sqlite',
443445 ]),
444446 'orders',
445- postgresql_insert_options (conflict_columns: ['order_id'])
447+ sqlite_insert_options (conflict_columns: ['order_id'])
446448 )
447449 )
448450 ->run();
Original file line number Diff line number Diff line change @@ -345,7 +345,9 @@ <h4 class="text-bold mt-5 mb-5">Example: <a href="/data_writing/database_upsert/
345345
346346declare(strict_types=1);
347347
348- use function Flow\ETL\Adapter\Doctrine\{from_dbal_query, postgresql_insert_options, to_dbal_table_insert};
348+ use function Flow\ETL\Adapter\Doctrine\{from_dbal_query,
349+ sqlite_insert_options,
350+ to_dbal_table_insert};
349351use function Flow\ETL\DSL\{data_frame, from_array, to_stream};
350352use Doctrine\DBAL\DriverManager;
351353use Doctrine\DBAL\Schema\{Column, Table, UniqueConstraint};
@@ -404,7 +406,7 @@ <h4 class="text-bold mt-5 mb-5">Example: <a href="/data_writing/database_upsert/
404406 'driver' => 'pdo_sqlite',
405407 ]),
406408 'orders',
407- postgresql_insert_options (conflict_columns: ['order_id'])
409+ sqlite_insert_options (conflict_columns: ['order_id'])
408410 )
409411 )
410412 // second insert that normally would fail due to Integrity constraint violation
@@ -415,7 +417,7 @@ <h4 class="text-bold mt-5 mb-5">Example: <a href="/data_writing/database_upsert/
415417 'driver' => 'pdo_sqlite',
416418 ]),
417419 'orders',
418- postgresql_insert_options (conflict_columns: ['order_id'])
420+ sqlite_insert_options (conflict_columns: ['order_id'])
419421 )
420422 )
421423 ->run();
Original file line number Diff line number Diff line change @@ -360,7 +360,9 @@ <h4 class="text-bold mt-5 mb-5">Example: <a href="/data_writing/database_upsert/
360360
361361declare(strict_types=1);
362362
363- use function Flow\ETL\Adapter\Doctrine\{from_dbal_query, postgresql_insert_options, to_dbal_table_insert};
363+ use function Flow\ETL\Adapter\Doctrine\{from_dbal_query,
364+ sqlite_insert_options,
365+ to_dbal_table_insert};
364366use function Flow\ETL\DSL\{data_frame, from_array, to_stream};
365367use Doctrine\DBAL\DriverManager;
366368use Doctrine\DBAL\Schema\{Column, Table, UniqueConstraint};
@@ -419,7 +421,7 @@ <h4 class="text-bold mt-5 mb-5">Example: <a href="/data_writing/database_upsert/
419421 'driver' => 'pdo_sqlite',
420422 ]),
421423 'orders',
422- postgresql_insert_options (conflict_columns: ['order_id'])
424+ sqlite_insert_options (conflict_columns: ['order_id'])
423425 )
424426 )
425427 // second insert that normally would fail due to Integrity constraint violation
@@ -430,7 +432,7 @@ <h4 class="text-bold mt-5 mb-5">Example: <a href="/data_writing/database_upsert/
430432 'driver' => 'pdo_sqlite',
431433 ]),
432434 'orders',
433- postgresql_insert_options (conflict_columns: ['order_id'])
435+ sqlite_insert_options (conflict_columns: ['order_id'])
434436 )
435437 )
436438 ->run();
Original file line number Diff line number Diff line change @@ -436,7 +436,9 @@ <h1><a id="flow-php-upsert-insert-or-update-data-into-a-database" href="#content
436436
437437declare(strict_types=1);
438438
439- use function Flow\ETL\Adapter\Doctrine\{from_dbal_query, postgresql_insert_options, to_dbal_table_insert};
439+ use function Flow\ETL\Adapter\Doctrine\{from_dbal_query,
440+ sqlite_insert_options,
441+ to_dbal_table_insert};
440442use function Flow\ETL\DSL\{data_frame, from_array, to_stream};
441443use Doctrine\DBAL\DriverManager;
442444use Doctrine\DBAL\Schema\{Column, Table, UniqueConstraint};
@@ -495,7 +497,7 @@ <h1><a id="flow-php-upsert-insert-or-update-data-into-a-database" href="#content
495497 'driver' => 'pdo_sqlite',
496498 ]),
497499 'orders',
498- postgresql_insert_options (conflict_columns: ['order_id'])
500+ sqlite_insert_options (conflict_columns: ['order_id'])
499501 )
500502 )
501503 // second insert that normally would fail due to Integrity constraint violation
@@ -506,7 +508,7 @@ <h1><a id="flow-php-upsert-insert-or-update-data-into-a-database" href="#content
506508 'driver' => 'pdo_sqlite',
507509 ]),
508510 'orders',
509- postgresql_insert_options (conflict_columns: ['order_id'])
511+ sqlite_insert_options (conflict_columns: ['order_id'])
510512 )
511513 )
512514 ->run();
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" encoding =" UTF-8" ?><urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" ><url ><loc >https://flow-php.com/blog/2025-01-25/data-processing-in-php</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ><changefreq >weekly</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/blog/2024-08-08/scalar-functions</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ><changefreq >weekly</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/blog/2024-04-04/building-custom-extractor-google-analytics</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ><changefreq >weekly</changefreq ><priority >1.0</priority ></url ></urlset >
1+ <?xml version =" 1.0" encoding =" UTF-8" ?><urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" ><url ><loc >https://flow-php.com/blog/2025-01-25/data-processing-in-php</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ><changefreq >weekly</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/blog/2024-08-08/scalar-functions</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ><changefreq >weekly</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/blog/2024-04-04/building-custom-extractor-google-analytics</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ><changefreq >weekly</changefreq ><priority >1.0</priority ></url ></urlset >
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" encoding =" UTF-8" ?><urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" ><url ><loc >https://flow-php.com/blog</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ><changefreq >daily</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/documentation</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ><changefreq >daily</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/changelog</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ><changefreq >daily</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ><changefreq >daily</changefreq ><priority >1.0</priority ></url ></urlset >
1+ <?xml version =" 1.0" encoding =" UTF-8" ?><urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" ><url ><loc >https://flow-php.com/blog</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ><changefreq >daily</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/documentation</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ><changefreq >daily</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/changelog</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ><changefreq >daily</changefreq ><priority >1.0</priority ></url ><url ><loc >https://flow-php.com/</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ><changefreq >daily</changefreq ><priority >1.0</priority ></url ></urlset >
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" encoding =" UTF-8" ?><sitemapindex xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" ><sitemap ><loc >https://flow-php.com/sitemap.default.xml</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ></sitemap ><sitemap ><loc >https://flow-php.com/sitemap.examples.xml</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ></sitemap ><sitemap ><loc >https://flow-php.com/sitemap.blog.xml</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ></sitemap ><sitemap ><loc >https://flow-php.com/sitemap.documentation.xml</loc ><lastmod >2025-02-23T12:34:25 +00:00</lastmod ></sitemap ></sitemapindex >
1+ <?xml version =" 1.0" encoding =" UTF-8" ?><sitemapindex xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" ><sitemap ><loc >https://flow-php.com/sitemap.default.xml</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ></sitemap ><sitemap ><loc >https://flow-php.com/sitemap.examples.xml</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ></sitemap ><sitemap ><loc >https://flow-php.com/sitemap.blog.xml</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ></sitemap ><sitemap ><loc >https://flow-php.com/sitemap.documentation.xml</loc ><lastmod >2025-02-23T12:56:16 +00:00</lastmod ></sitemap ></sitemapindex >
You can’t perform that action at this time.
0 commit comments