2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Google Apps Script V8 エンジンでの JDBC に注意

Posted at

Google Apps Script(GAS) からデータベースにアクセスする場合は、GAS に組み込まれている JDBC を使用します。

External databases via JDBC

GAS の JDBC は、Google が提供する Cloud SQL はもちろん、他のクラウドデータベースサービスである、Oracle Cloud や Azure SQL Server にも接続することができます。

新しい GAS の V8 ランタイムエンジンが登場し、多くの方が Rhino から移行したのですが、突然データベースにアクセスできなくなったとの報告が大量に挙がりました。

Issue Tracker: Chrome V8 : ReferenceError: Jdbc is not defined

投稿日は 2020/2/12 で1年以上も前で、50件以上も同様の症状が報告されているのですが、2021/2/16 現在、改善されてはいないようです。

V8 エンジンの JDBC の実装に問題があるようで、Google の Cloud SQL でも障害が再現します。
このため、JDBC を使っていた人は、やむを得ず Rhino に戻して使用している状況です。

GAS で JDBC の利用を検討されている方はご注意下さい。

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?