डेटाबेस
हर app में एक database शामिल होता है। Proyecta आपके descriptions से schema बनाता है। Database tab से data देखें, edit करें और manage करें।
हर Proyecta app के साथ एक built-in database आता है — कोई setup की ज़रूरत नहीं। यह एक real-time, document-oriented database है जिसमें automatic reactivity है — data बदलते ही आपका UI तुरंत update हो जाता है।
Database कैसे काम करता है?
Section titled “Database कैसे काम करता है?”जब आप AI को features describe करते हैं, तो वह database schema अपने आप बना देता है:
"Add a blog with posts and comments"→postsऔरcommentstables बनाता है"Users should be able to save favorites"→ user relationships के साथfavoritestable बनाता है"Track order history"→ proper indexes के साथorderstable बनाता है
आपको schema design करने की ज़रूरत नहीं है। जो functionality और user experience आप चाहते हैं, उसे describe करें और बाकी काम AI कर देता है।
Data देखें और manage करें
Section titled “Data देखें और manage करें”अपना database browse और manage करने के लिए Dashboard > Data खोलें:
- Table list — document counts के साथ आपकी सभी tables
- Record browser — किसी भी table के records का paginated view
- Create records — form editor से नए records जोड़ें
- Edit records — individual fields update करें
- Delete records — confirmation के साथ records हटाएं
Data tab अपने आप table schemas discover करता है और field types infer करता है, इसलिए आप बिना किसी configuration के records browse और edit कर सकते हैं। यह scalar fields (number, short text, boolean) के लिए inline cell editing भी support करता है — सीधे edit करने के लिए cell पर click करें; complex या JSON fields full-form editor में खुलते हैं। Toolbar में एक search bar loaded page पर client-side records filter करता है।
AI की क्या भूमिका है?
Section titled “AI की क्या भूमिका है?”आज data read और write करने का सबसे powerful तरीका AI है। उससे सीधे पूछें:
"Show me the last 10 users who signed up""Add a test user with email test@example.com""Set every order from last week to status=shipped""Bulk insert these 20 products""Drop the oldtemp_importstable"
AI सीधे कोई भी data read और modify कर सकता है — उससे records add, update या delete करने के लिए कहें। सुरक्षा के लिए, auth-managed users table write-protected है और AI के ज़रिए उसे modify नहीं किया जा सकता।
Infrastructure Databases
Section titled “Infrastructure Databases”अगर आपको built-in database के अलावा एक traditional relational database की ज़रूरत है, तो आप infrastructure services जोड़ सकते हैं:
- PostgreSQL — SQL support के साथ full relational database
- MySQL — Alternative relational database
- MongoDB — Document database
- Redis — In-memory data store / cache
इन्हें AI को describe करके, या अपने proyecta.config.json में configure करके जोड़ें। विस्तार के लिए Dev Machines देखें।
क्या मेरा data backup होता है?
Data persistence और replication अपने आप handle होती है। Infrastructure databases (PostgreSQL, आदि) के लिए, backups अभी automated नहीं हैं।
क्या मैं अपना data export कर सकता/सकती हूं?
Data tab से data export अभी उपलब्ध नहीं है। आप Dashboard > Data में records browse कर सकते हैं, या AI से अपना data export करने के लिए कह सकते हैं। अन्य export options के लिए Export Data देखें।
क्या मैं AI के बिना सीधे data edit कर सकता/सकती हूं?
हां — records सीधे browse, create, edit और delete करने के लिए Dashboard > Data का उपयोग करें।
जल्द आने वाला है
Section titled “जल्द आने वाला है”- bulk loading के लिए CSV import