golang-migrate:尝试使用集成的go-bindata升级sqlcipher

问题描述

上下文

  • 我的数据库plotly用密钥“ 123456”加密。
  • 使用library(tidyverse) library(plotly) state <- 1:31 %>% as.character() disease <- 1:40 %>% as.character() city <- LETTERS[1:2] value <- runif(n = 31*40*2) df <- expand.grid(state = state,disease = disease,city = city) %>% cbind(value) p <- df %>% ggplot(aes(x = city,y = disease,fill = value)) + geom_tile() + scale_fill_gradient(high = '#FF0000',low = 'white') + theme(axis.line = element_line(linetype = 'solid')) + theme_classic() + scale_x_discrete(expand = c(0,0)) + scale_y_discrete(expand = c(0,0)) + facet_wrap(vars(state)) p web_p <- ggplotly(p) web_p sql文件转换为bindata.go
  • 使用sqlcipher进行架构升级

代码

go-bindata

它总是打印:文件不是数据库。 (似乎它无法识别原始的加密数据库。)

  • 如果我不加密数据库,那么迁移将成功

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)