Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio does not offer SQL as an injected language

On a string literal, Android studio offers the inject language feature, but in the drop down list of languages, there is no SQL offered. All the documentation states it should be there. Any idea how I can inject SQL?

enter image description here

like image 480
Steve Waring Avatar asked Sep 09 '25 12:09

Steve Waring


2 Answers

There is a Database Navigator plugin, which offers similar functionality.

Supported Databases:

  • Oracle
  • MySQL
  • PostgreSQL
  • SQLite
  • Any JDBC compliant database (EXPERIMENTAL)

Language injection feature:

SQL languages

This tool is free for personal and commercial usage. Donations are very welcome though. (I'm not affiliated nor associated with authors)

like image 193
naXa Avatar answered Sep 11 '25 20:09

naXa


Database tools and SQL support are only available in IntelliJ IDEA Ultimate.

Source

Hence, you cannot use SQL support in Android Studio.

You could use ADB Shell to connect to SQLite, which is IDE independent.

like image 24
Darek Kay Avatar answered Sep 11 '25 20:09

Darek Kay