cloudflare-d1-wrapper
v2.0.0
Published
cloudflare REST API wrapper for D1 database.
Downloads
14
Maintainers
Readme
Cloudflare REST API wrapper for D1
cloudflare REST API wrapper for D1 database.
Installation
npm i cloudflare-d1-wrapper
Example
import D1Wrapper from 'cloudflare-d1-wrapper';
const API_KEY = 'YOUR_API_KEY';
const wrapper = new D1Wrapper(API_KEY);
const databaseMeta = wrapper.getDatabase('YOUR_ACCOUNT_ID', 'YOUR_DATABASE_ID');
License
Features
- [ ] Get database list
- [x] Create database
- [ ] Delete database
- [x] Get database
- [x] Query database
- [ ] Raw database query