📝 ContentDB
Used for all content, including blogs, posts, articles, and videos, in JSON format. Content exists inside channels.
1const contentDB = new DBMS.ContentDB(channelDB, 'Channel1');2contentDB.Limit = 2;
📌 Limit controls max content inside channel db.
➕ Create Content
1const contentID = await contentDB.create(2 type = "list" | 'tutorial',3 contentName = "First-Content",4 body = ["Hello", "User", "ALice"] | { Name: "Alice", message: 'Hello' }5);
📁 Path created:
1/Users/Ae/Alice@example.com/Product1/Channel1/${ContentType}/First-Content.json
📄 Read Content
1await contentDB.read(contentID);
✏️ Update Content Body
1await contentDB.updateContent(2 contentID,3 ["Alice", "AliceDemo"]4);
✏️ Update Content Info
1await contentDB.updateInfo(2 contentID,3 {4 tags: ["updated"],5 author: "New Author"6 }7);
❌ Delete Content
1await contentDB.delete(contentID);
📃 List Content
1await contentDB.list({type: 'list' | 'all'});
🔍 Find Content
1await contentDB.find(contentID);