カテゴリーを見る

DuckDBをBaserowにスケジュール同期する

自動化 · DuckDB から Baserow へ

保つ バセロー DuckDBファイルに合わせて、 スケジュール通りに

SQL文は一度書くだけでOK。Query Streamsが5分ごとから週ごとまで、指定したスケジュールで実行し、結果をBaserowテーブルに書き込みます。キーで行を照合すれば、編集内容がそのまま反映され、クエリから外れた行は削除されます。もちろん、単純に行を追加することも可能です。Zapierもスクリプトもエクスポートも不要。初回は約15分で完了し、無料プランで利用できます。

約15分 コーディングは不要です ファイルは元の場所に残ります 5分ごとから週ごと
行き詰まったら、遠慮なく質問してください。 開く サポート クエリ ストリーム(右上メニュー → サポート)からメッセージを送信してください。担当者が目を通しますので、「この画面で何を求めているのか分かりません」というご質問は、全く問題ありません。

最終的に手に入るもの

DuckDBのロゴDuckDBクエリが返す行を保持するBaserowテーブルは、5分ごとから週ごとまでのスケジュールに従って更新され、実行ごとに変更内容の記録が残ります。例:

DuckDB holds your data in a file. Your team works in Baserow. The usual bridge is a Zapier or Make scenario, or a CSV someone uploads that breaks quietly and copies one row at a time. Query Streams Automation does it differently: the Agent that already reads your DuckDB file runs your saved SQL on a schedule and writes the whole result into Baserow in one pass, matching rows by a key so the table stays correct rather than growing.

ファイルの保存場所オフィスのコンピュータ、サーバー、または自宅のコンピュータあなたのDuckDBファイルsales.duckdb · ここに滞在しますクエリストリームエージェント保存されたクエリを実行しますあなたのスケジュールに合わせてクエリストリーム暗号化されたリンク行のみ · 書き込みのみで、当社では読み上げませんあなたのチームが働く場所どのブラウザでもバセローテーブルがその場で更新されます
エージェントはデータと共に動作し、スケジュールに従ってクエリを実行します。Baserowはデータ行を受け取るだけで、誰も何も操作する必要はありません。

必要なもの

クエリストリームアカウント

このガイドは無料プランで十分です。登録はこちらから my.querystreams.com.

DuckDBはエージェント経由で接続しました

The Agent installed on the computer that holds your DuckDB file, or on one that reads it from a network share, with the connection added in Data Agents. Not done yet? まずDuckDBに接続してください。所要時間は約10分です。

保存されたクエリ

同期させたいSELECTは、 クエリビルダー以下のステップ1に例を示します。変更された行をその場で更新したい場合は、IDなど、行ごとに一意の列を含めます。

Baserowへのログイン

Baserowサーバーのアドレス(デフォルトはapi.baserow.io)、メールアドレス、パスワードを入力してください。Query Streamsはこれらの情報を暗号化して保存し、同期実行時に自動的にログインします。

作業はどこで行われますか? エージェントを実行しているコンピューター上で、スケジュールに従ってクエリが実行され、結果がBaserowに書き込まれるため、そのコンピューターは起動したままにしておく必要があります。ブラウザは閉じても構いません。Query Streams自体は結果を保存しません。

File on another computer? The Agent does not have to run on the computer that holds your DuckDB file: it can read the file from a network share. Reaching a file on a network share, below, shows what that takes.

6つのステップで設定できます

  1. 同期を維持したいクエリを保存します

    開く クエリビルダーDuckDB の接続を選択してください (まだ接続していませんか? ここから始めましょう)そして、Baserow で必要な行と列を正確に返す SELECT 文を記述します。これは、Baserow からいくつかの列を取得します。 オーダー テーブル:

    例:SQL
    SELECT order_id, customer_name, order_total FROM main.orders ORDER BY order_total DESC LIMIT 100;

    実行してから セーブ 分かりやすい名前(例:「Baserow の注文」)を付けてください。SELECT 文では、行ごとに一意の列を保持してください。 注文IDこれが、Full Syncが該当行をその場で更新するために使用する鍵です。後でクエリを編集して再保存すると、自動化処理は次回の実行時に変更を反映します。

  2. Automationを開いてBaserowを選択します。

    ポータルで、 オートメーション (トップメニュー) ストリーム → スケジュール済み → 自動化)そしてクリック 新しい自動化魔法使いには5つの短いステップがあります。 ステップ1 クリック バセロー カード。

    代わりに「始める前に」というメッセージが表示される? ウィザードは、エージェントがオンライン接続を確立し、かつ少なくとも1つの保存済みクエリが存在する場合にのみ開きます。ページには、3つの条件のうちどれが不足しているかが表示され、該当箇所へのリンクが表示されます。

  3. ベースロウを接続する

    の上 ステップ2 埋める サーバーURL (Baserowクラウドの場合は空白のままにしてください) 電子メール そして パスワード次にクリックします テスト接続Baserowサーバーのアドレス(デフォルトはapi.baserow.io)、メールアドレス、パスワードを入力してください。Query Streamsはこれらの情報を暗号化して保存し、同期実行時に自動的にログインします。

  4. 行が着地する場所を選択してください

    の上 ステップ3 選ぶ データベースすると、 テーブル 行が配置される場所を指定します。空のテーブルが必要な場合は、まず Baserow でテーブルを作成してください。既に行がある場合は、プレビューが表示され、各同期モードがそれらの行に対してどのような処理を行うかが説明されます。テーブルごとに 1 つの自動化が必要です。

  5. クエリを選択し、行がどのように配置されるかを決定します。

    の上 ステップ4 開く 保存されたクエリー ステップ1で作成したクエリを一覧表示して選択します。クエリストリームは、そのクエリを一度実行して列を読み込み、返される行数を表示し、2つの選択肢を表示します。

    追加・高速

    追加

    クエリを実行するたびに、クエリの行がテーブルの末尾に追加されます。更新も削除もされないため、ログ、イベント、履歴などを蓄積するのに最適な方法です。キー列は不要です。変更のない行は再度追加されず、値が変更された行は新しい行として下に追加され、古い行はそのまま残ります。

    フル同期・ミラー

    フルシンク

    行は、 鍵 注文IDなどの列。新しい行が追加され、変更された行はそのまま更新され、クエリから返されなくなった行は削除されます。これには、手動でテーブルに入力された行も含まれるため、手動で入力された行は別のテーブルに保持してください。これは、在庫、パイプライン、マスターデータ、ダッシュボードに適しています。

    フル同期は列ごとに設定されるため、共有テーブルで特に役立ちます。

    鍵
    行を識別する列、例えば 注文IDクエリ結果内で一意である必要があります。クエリ ストリームはそれを自動的にチェックし、重複を拒否します。
    同期
    実行ごとにDuckDBから上書きされます。BaserowのSync列が編集された場合、次の実行時に元の値が復元されます。
    保存する
    行が最初に到着したときに書き込まれ、その後は比較されないため、DuckDB で変更されても更新はトリガーされません。チームが手動で入力するメモ、所有者、フォローアップの日付については、クエリにまったく含まれていない列を使用してください。Baserow にのみ存在する列は、同期によって変更されることはありません。

    どちらが速いですか? 追加モードでは、テーブルを読み込むことなく書き込みが行われます。完全同期モードでは、テーブルを読み込み、すべての行を比較し、差分のみを書き込むため、処理時間は長くなりますが、テーブルは常にクエリと一致します。これらのモードは、自動化設定の編集パネルから後から切り替えることができます。

    信頼できるテーブルについては、こちらをクリックしてください。 すべての列を同期として作成する次に、鍵のアイコンをクリックします。 注文ID それを実現するために 鍵クエリ ストリームは結果全体をスキャンしてキーが一意であることを確認し、一意でない場合は警告します。クエリの一部ではない列にチーム独自のメモを残してください。それらの列は決して変更されません。常に増加するログについては、ここをクリックしてください。 すべての列を保持するように作成します 代わりに、キーをスキップします。クリックします。 続く.

  6. スケジュールを設定し、名前を付け、作成します

    の上 ステップ5 選ぶ スケジュール通りに実行する そして選ぶ 頻度:

    頻度走る
    5分ごとに5分ごとに、最速で許可されている
    15分ごとに15分ごと
    30分ごと30分ごと
    毎時間毎時ちょうどに
    毎日午前9時毎日午前9時、デフォルト
    毎日午前6時毎日午前6時
    平日午前9時月曜日から金曜日の午前9時
    毎週(月曜日午前9時)毎週月曜日午前9時
    カスタムスケジュールあなた自身の分、時間、曜日、または日付

    時代は続く タイムゾーン 選択すると、ブラウザの起動時に表示されます。 マニュアルのみ そして押す 走る いつでも好きな時に実行できます。スケジュールは後から自動化の編集パネルから追加できます。スケジュールされた実行はエージェント上で実行されるため、ブラウザを閉じても実行は継続されます。実行予定時刻にエージェントを実行しているコンピュータの電源がオフになっている場合、実行されなかった分はエージェントが再起動した直後に一度だけ実行されます。

    与えて 統合名例えば「Baserowへの注文、毎日」など、 創作の準備はできましたか? 概要とクリック 自動化を作成するオートメーションページに戻り、 走る スケジュールを待たずに、最初の同期を今すぐ実行します。Baserowを開くと、列ヘッダーの下に行が表示されます。

それでおしまい。 今後は、テーブルが自動的に最新の状態に保たれます。クエリが返した行以外はネットワークから何も送信されず、誰も何かを実行することを覚えておく必要もありません。

その後に目にするもの

の 自動化ページ すべての自動化をステータス、ソース、ターゲット、キー、スケジュール、最終同期、行数とともに一覧表示します。 処刑 タブ:トリガー(手動またはスケジュール)、実行時間、作成、更新、削除、変更された行を含むすべての実行。 パフォーマンス このタブには、7日から90日間に処理されたデータ量と成功率が表示されます。

停止した時に通知されます

すべての組織には 同期の問題 初日から適用されるアラートルール:同期が失敗した場合、アプリ内通知とメールが送信され、復旧した場合にも再度通知が送信されます。1件のインシデントにつき1つのメッセージが送信され、再試行のたびにメッセージが送信されることはありません。この機能をオフにするか、ストリーム → アラートとレポートでチャンネルを変更してください。

一時停止すべき時に一時停止する

Baserowが接続を受け付けなくなった場合、またはデータコネクタが削除された場合、自動化処理は一時停止し、その理由が表示されます。再接続するか、新しいソースを選択して「再開」を押してください。その他のエラーが発生した場合は、スケジュールは継続され、該当行に表示されます。

キー列がありません

Baserow のキー列の名前を変更したり削除したりすると、Full Sync は書き込みを行う前に停止し、 修正オプション列を元の名前に戻して、再度実行してください。他の列は同期によって削除されることはありません。

計画で許可されている内容

自動化機能は無料プランを含むすべてのプランで利用可能で、作成できる自動化の数に制限はありません。ただし、各プランで制限されるのは、1回の実行で1つのクエリが返すことができる行数です。

プラン1回の実行あたりの行数
無料125
個人的な核心500
パーソナルプラス1,000
ビジネスコア2,500
ビジネスプラス5,000
ビジネスマックス10,000
エンタープライズコア25,000
エンタープライズプラス100,000
エンタープライズマックス250,000

クエリがより多くのデータを返す場合、実行は途中で中断されるのではなく保留され、自動化システムはどのプランが適切か、または日付範囲などのフィルターを追加することを提案します。正常に実行された各実行は、Excel および Sheets クエリで使用されるのと同じデータ レルムの割り当て量にカウントされます。 価格ページをご覧ください 手当のために。

良い次の動き

  • フィルターを追加する クエリに対して、例えば過去90日間などを指定することで、テーブルのサイズを小さく保ち、処理速度を向上させ、プランの行制限に適合させます。
  • 手書きのメモは専用の列に記入してください。クエリの外側にあるため、すべての同期で存続します。
  • 自動化をグループ化する いくつか設定したら、編集パネルから「自動化」ページをグループごとにフィルタリングします。

Reaching a file on a network share

The Agent opens files as a background service, not as you, so a file on another computer needs one extra step. Which step depends on the computer the Agent runs on.

Windows

Type the network path, like \\server\share\folder, never a mapped drive letter such as S:, which the Agent cannot see. If the share only lets in named people, click Service identity (the chip under the path) and store a login for that server: a company domain account, or an account made on the server itself with Domain left blank. The Agent then signs in to that server and reads the file there, and every connector on that Agent that reads the same server must use the same login. Without a login, it reads as its own service account, which a company domain sees as the computer itself. Step by step on Windows

Linux

Share logins stored in the Portal are not used on Linux: an administrator mounts the share on the Agent’s computer first, in a folder under /月 または /メディア, because the Agent’s service cannot see /home または /run/user. In the connector, keep the \\server\share path, which the Agent maps onto the mount, or type the mount path instead, such as /mnt/fileserver-shared/Accounts. How to mount a share on Linux

マック

Share logins stored in the Portal are not used on a Mac: mount the share first from Terminal with sudo, in a folder under /Volumes, so the Agent’s background service can see it. In the connector, keep the \\server\share path, which the Agent maps onto the mount, or type the mount path instead, such as /Volumes/fileserver-shared/Accounts. How to mount a share on a Mac

If the test cannot get to the share, look for these words in its result: unreachable means the Agent’s computer got no answer from the server. On Linux or a Mac, not mounted means the share still has to be mounted, and that message includes the exact mount command for your server.

DuckDB file on a share? DuckDB allows one writer at a time, so the Agent cannot open a file that another program has open for writing; on a \\server\share path the test says it is open for writing by another program. Close it there, or point the connector at a file nobody is writing to. Every query reads the file across the network, so a large file answers more slowly than it would from a local disk.

Test failed on a share?

Every run reaches the file the same way the connection test does. If runs start failing after something changed on the file server, a new password for example, open the connector in データエージェント そしてクリック 接続テスト. The test result, and the line under the file path, name the problem:

メッセージ原因修理
DuckDB database file not found: followed by a \\server\share path you know is rightNo login is stored, so the Agent tried the share as its own account and could not see the file: the share turned that account away, or the server did not answer. In the first case the line under the path says Access denied for the agent’s service account.クリック Service identity under the path and store a login that can read the share. If the line under the path does not say access denied, check that the Agent’s computer can open the share at all.
Share \\server: access denied — add credentials for this serverA login is stored, but that account has no permission on the share, or another sign-in to the same server is in the way; the message before this line says which.Ask whoever runs the server to give that account read access, or store an account that has it. For a sign-in in the way, see the two rows on one login per server below.
Share \\server: the credentials were refused — check the username and passwordThe server turned the stored login down: a typo, the wrong domain, or a password changed since it was saved, which also stops runs that used to work.Click the chip under the path and type the password again; for an account made on the server itself, leave Domain blank. After a refused login the Agent waits a minute before it tries that same one again, so the account is not locked out; saving a corrected password tries straight away.
Share \\server: server unreachable from the agent machineThe Agent’s computer got no answer from the server: a wrong server name, the server is off, or a firewall blocks file sharing.On the Agent’s computer, open the same \\server\share path in File Explorer. If that fails too, it is a network problem for whoever runs the network.
Another connector on this agent already signs in to \\server as …Windows lets one computer sign in to a server as one account at a time, and another connector on this Agent uses a different login for that server.Store the same login the other connector uses, or change it on every connector that reads that server.
Windows already holds a sign-in to \\server for …Something on the Agent’s computer other than the Agent is already signed in to that server as a different account, and the Agent never closes a sign-in it did not make.Do what the rest of the message says: use that same account on this connector, or close the other sign-in on the Agent’s computer. If it says the share is already readable through that sign-in, choose Use service identity in the login box instead.
This agent build cannot sign in to \\server with stored credentials.The Agent is an older version that cannot use stored logins.Update the Agent, then test again.
\\server\share is not mounted on this Linux agent (または macOS agent)The Agent runs on Linux or a Mac and the share has not been mounted on its computer yet; logins stored in the Portal are not used there.Mount it with the command the message gives you, then test again. Step by step: Linux上で - on a Mac.
… is open for writing by another programDuckDB allows one writer at a time, and another program has the file open for writing.Close the file in that program, or point the connector at a file nobody is writing to.

人々が尋ねる質問

同期処理によって、私のチームがBaserowに追加したメモは上書きされますか?

メモが独自の列に存在する場合はそうではありません。Baserow にのみ存在し、クエリには存在しない列は変更されないため、同期された列の横にメモまたは所有者列を追加してそこに入力します。 同期 実行ごとにDuckDBの値に戻されます。 保存する 行が最初に到着したときに列にデータが入力され、その後は比較されません。

私のDuckDBデータはクエリストリームに保存されますか?

いいえ。エージェントはお客様側でクエリを実行し、暗号化されたリンクを介して結果をBaserowに直接送信します。Query Streamsは、構成、スケジュール、および実行ごとの行数を保持しますが、行自体は保持しません。

コンピューターは電源を入れたままにしておく必要がありますか?

エージェントを実行しているコンピューターがクエリを実行し、Baserowに書き込むため、エージェントが実行されます。ご自身のノートパソコンやブラウザは閉じても構いません。実行予定時刻にコンピューターの電源が切れている場合、実行が中断されたとしても、エージェントが再起動した直後に一度だけ実行されます。

後でクエリを変更できますか?

はい。クエリビルダーで編集して保存すると、次回の実行時に自動的に新しいバージョンが使用されます。列を追加または削除した場合は、オートメーションの編集パネルを開いてマッピングしてください。

2つの自動化プロセスが同じテーブルに書き込むことはできますか?

いいえ、テーブルごとに自動化は1つだけです。2つ目の自動化を別のテーブルに向けるか、最初の自動化の背後にあるクエリを拡張してください。

無料プランで本当にこれがカバーされるのですか?

はい。無料プランは、期限切れのトライアルではなく、継続して利用できるプランです。自動化はすべてのプランに含まれています。プランによって異なるのは、1回の実行で1つのクエリが返すことができる行数です。無料プランに含まれる内容については、 価格ページ.

まだ行き詰まっていますか? 開く サポート クエリ ストリームで、どのステップで何が表示されているかをお知らせください。接続をご案内いたします。

すべてのガイド DuckDB

あなたの設定とは少し違いますか?

  • DuckDBデータベースファイルではなく、Parquetファイルのフォルダをお持ちですか?Parquet Folderはそれらをすべて1つのテーブルとして読み取ります→ Parquet Folder

Setup trouble?

  • Agent says the file or folder does not exist, or access is denied? Mapped drives, network shares, OneDrive and Linux home folders each need one fix → Where the Agent can read files from
  • Agent shows Offline, or Test connection and Browse are greyed out? Check that the Agent is online → Is the Agent online?
更新日 10月 12, 2026