通过colab直接操作Google驱动器中的sqlite3格式数据 [英] From colab directly manipulate sqlite3 format data in Google drive

查看:88
本文介绍了通过colab直接操作Google驱动器中的sqlite3格式数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从colaboratory,可以直接在Google驱动器中操作sqlite 3格式的数据吗? 可以上传它,但是在Google驱动器中使用它很方便.

From colaboratory, is it possible to directly manipulate sqlite 3 format data in google drive? It is possible if you upload it, but it is convenient to use it in google drive.

推荐答案

您可以通过将Google云端硬盘安装为FUSE文件系统来从云端硬盘加载文件目录.

You can do load files directory from Drive by mounting your Google Drive as a FUSE filesystem.

这是一个例子: https://colab.research.google.com/notebook#fileId=1srw_HFWQ2SMgmWIawucXfusGzrj1>

Here's an example: https://colab.research.google.com/notebook#fileId=1srw_HFWQ2SMgmWIawucXfusGzrj1_U0q

没有官方的Google Drive FUSE文件系统.但是,第三方已经编写了几个开源的FUSE + Drive库.上面的示例笔记本使用 google-drive-ocamlfuse .笔记本显示三件事:

There's no official Google Drive FUSE filesystem. But, several open-source FUSE + Drive libraries have been written by third parties. The example notebook above uses google-drive-ocamlfuse. The notebook shows three things:

  1. 在Colab VM中安装Drive FUSE包装器.
  2. 对驱动器进行身份验证,并使用FUSE包装器安装驱动器.
  3. 在新安装的驱动器支持的文件系统中列出和创建文件.

这篇关于通过colab直接操作Google驱动器中的sqlite3格式数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆