Is it possible to created collection, attributes, indexes & config permission using script?
- 0
- Databases
- Tools
I have been Designing SQL DB schema, keeping in mind Relationship between each table. So, I ended-up with 30+ Tables (500+ lines) of SQL command to created each-table and indexes. I wonder, if is it possible to write a script which can be executed to created relevant collection if I feed attribute and it's data-type and indexes ?
cc @Steven
You mean something like this? https://appwrite.io/docs/server/databases?sdk=nodejs-default#databasesCreateCollection
You can check appwrite databases using this CLI command it will show all the possible commands
You will get the some option like these and many more:
createCollection
createStringAttribute
createIndex
Not sure about config permission.
thank you, seems it will solve. Just that not sure about adding indexes & attributes... so far in the doc nothing seems be mentioned.
thank you π
seems it's script is kinda not possible.
umm, so like we have create script to write json and then feed json cli?
Or manually make the JSON file
πΆβπ«οΈ
that's alot time taking... I guess I will go with UX
It'd be copying and pasting each attribute but sure you can script whatever.
What do you mean you'll go with UX?
I mean UX interface app-write
The Appwrite Console?
yap I mean π
btw any example for push-notification?
@Steven getting erros while trying to trigger the function..
logs also doesn't help much
Best to create a new <#1072905050399191082> post
let me 1 min
Recommended threads
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- [SOLVED] Appwrite Cloud and FRA cloud se...
Can anyone estimate how long this will take to resolve? I am checking status here https://status.appwrite.online/
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...