8000 🚀 Feature: sdk for setup single database of project by default · Issue #5773 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
🚀 Feature: sdk for setup single database of project by default #5773
Closed as not planned
@TechComet

Description

@TechComet

🔖 Feature description

Most projects use a single database

I write example for getDocument but I talk for all functions

and write class for call function direct with default client
samething like this class but inside appwrite package

https://pastebin.com/raw/txMGE7Bh

🎤 Pitch

example in Dart

Client client = Client();
client
    .setEndpoint(appwriteEndpoint)
    .setProject(appwriteProjectId)
    .setDefaultDatabase('defaultdb')
    .setSelfSigned(status: appwriteSelfSigned);

in get document if use default database databaseId is null
database.getDocument(collectionId: 'collectionId', documentId: 'documentId');
in get document if use other database
database.getDocument(databaseId: 'other databaseId', collectionId: 'collectionId', documentId: 'documentId')

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / databasesFixes and upgrades for the Appwrite Database.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0