title: How to pre-populate Room Database with array of Strings
body: <p>I am trying to create a Room database that contains array of strings and want to do that pre-populated. I tried db browser for SQLite, but it does not contain array data type. What can I do?
  I added my table model and type converters.</p>
  <pre class="lang-kotlin prettyprint-override"><code>@Entity(tableName =&quot;Data Table&quot;)
  data class Datas(
      @PrimaryKey(autoGenerate = true)
      @ColumnInfo(name = &quot;Id&quot;)
      val id : Int ,
      @ColumnInfo(name = &quot;Data1&quot;)
      val data1 : String ,
      @ColumnInfo(name = &quot;Data2&quot;)
      val data2 : Array&lt;String&gt; ,
      @ColumnInfo(name = &quot;Data3&quot;)
      val data3 : Array&lt;String&gt;,
      @ColumnInfo(name = &quot;Data4&quot;)
      val data4 : Array&lt;String&gt;,
      @ColumnInfo(name = &quot;Data5&quot;)
      val data5 : Array&lt;String&gt;,
  
  
  
      )
      class converter{
      @TypeConverter
      fun fromString(value : String) : Array&lt;String&gt; {
          val listType = object : TypeToken&lt;ArrayList&lt;String&gt;&gt;(){}.type
          return Gson().fromJson(value,listType)
      }
      @TypeConverter
      fun fromArrayList(list : Array&lt;String?&gt;) : String {
          return Gson().toJson(list)
  
      }
  }
  </code></pre>