jonasfranz / cosmosdb

CosmosDB SQL-API client for Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cosmosdb

codecov build pub package pub points

This projects offers an API client to interact with the CosmosDB SQL-API in Dart. This project is an early state and not considered stable.

Getting Started

The database can be accessed via the CosmosDB client:

import 'package:cosmosdb/cosmosdb.dart';

void main() {
    final cosmosDB = CosmosDB(
      masterKey: '<YOUR_MASTER_KEY>',
      baseUrl: '<YOUR_BASE_URL>',
    );
    // get all documents from a collection
    final documents = cosmosDB.documents.list('<YOUR_DATABASE>', '<YOUR_COLLECTION>');
    print(documents);
}

About

CosmosDB SQL-API client for Dart

License:Apache License 2.0


Languages

Language:Dart 100.0%