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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- after using the coding agents its code b...
can anybody suggest me an ai tool that i can use to create the system desgins without the suggestion things because it at last create a mess
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...