Support for Cloudflare's D1 and/or R2

Đang mở
#1,865 0 bình luận 3 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
aws, python, sql, sqlite
Lĩnh vực
cloud, databases

Hướng nghiên cứu

Bắt đầu bằng cách xem xét libcloud.storage.drivers.s3 dựa trên tài liệu S3 API của Cloudflare R2 và xác định liệu có thể ghi lại khả năng tương thích hiện có hay cần một module libcloud.storage.drivers.r2 riêng. Đề xuất rộng hơn cũng gợi ý thiết kế libcloud.sql.* cho D1 và các cơ sở dữ liệu SQL được quản lý khác; công việc được xem là hoàn tất khi phạm vi, việc triển khai, các bài kiểm thử và tài liệu đã được thống nhất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Feature Description

Cloudflare has been developing an alternative to traditional storage providers, with the benefit that it has no egress fees for the data.

  • D1 is a relational database build on SQLite, which currently is on Alpha. It can be access and manipulated through the online GUI on Cloudflare's Dashboard or through the CLI using a npm package called wrangler.
  • R2 is the Cloudflare's implementation of an object storage service. It can be used through the GUI on Cloudflare's Dashboard, through the CLI with wrangler, or using the Amazon's S3 API.

Proposal

  1. First the easiest, R2. To begin with, test if Apache Libcloud libcloud.storage.drivers.s3 works correctly with an R2 bucket, and if so, update the documentation to reflect that said module can be used with R2. It would be a good idea to document what functions are NOT available, according to Cloudflare's R2 documentation.
  2. If libcloud.storage.drivers.s3 doesn't work with R2, another module can be created (libcloud.storage.drivers.r2, for example), which is based on the S3's module but with a few adjustments, and removing functions that are unavailable on R2. I do think this is a cleaner solution, to keep S3 separated from R2.
  3. Finally, as Apache Libcloud does not (yet) manage Cloud Databases, a fine addition to the library would be to start a new module (maybe libcloud.sql.*?) and implement certain popular SQL Databases, such as Amazon's RDS, Azure's SQL Database, and of course Cloudflare's D1.
Ngôn ngữ chính
Python
Star
2.1k
Fork
935
Merge trung bình
5 ngày 3 giờ
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/libcloud

Tất cả issue của apache/libcloud

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.