- Home /
 
               Question by 
               TimGS · Jun 29, 2015 at 07:40 PM · 
                unity5sqliteencryption  
              
 
              Mono.Data.Sqlite.SqliteConnection.SetPassword() support
Is Mono.Data.Sqlite.SqliteConnection.SetPassword() supported by Android builds at all? Because I get an sqlite exception if I use encrypted db and password for Android build.
If it's not supported, is there any other way to set password for database?
               Comment
              
 
               
              Answer by xxShana · Oct 01, 2019 at 08:21 AM
         _connectionString = $"URI=file:{Application.dataPath}/StreamingAssets/database/{_databaseName};" +
             $" foreign keys=true;" +
             $"version=3;" +
             $"new=False;" +
             $"DateTimeFormat=Ticks";
         Debug.Log("db_connection_string" + _connectionString);
         dbConnection = new SqliteConnection(_connectionString);
         ((SqliteConnection)dbConnection).SetPassword(password);
         dbConnection.Open();
         Debug.LogWarning("OPEN CONNECTION  " + this.ToString());
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                