微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。