hexabase 0.1.0 copy "hexabase: ^0.1.0" to clipboard
hexabase: ^0.1.0 copied to clipboard

outdated

Dart and Flutter SDK for Hexabase

Hexabase SDK for Dart and Flutter #

Usage #

Import #

import 'package:hexabase/hexabase.dart';

Initializing #

Hexabase();

After initialized the client, you can take client object anytime.

var client = Hexabase.instance;

Log in #

await client.auth.login('you@example.com', 'your_secure_password');

Workspace #

Get all workspaces

var workspaces = await client.workspace.all();
// workspaces[0].id
// workspaces[0].name

Get workspace

var workspace = client.workspace(id: 'WORKSPACE_ID');

Application #

Get all applications

var applications = await workspace.applications();
print(applications[0].id);
print(applications[0].datastores[0].id);

Get application

var application = client.application(id: 'APPLICATION_ID');

Create application

var application = client.application();
application.name = {
	HBAppName.ja: 'テストアプリ',
	HBAppName.en: 'Test App',
};
await application.save();

Update application

var application = client.application(id: 'APPLICATION_ID');
application.name[HBAppName.en] = 'Test app v2';
await application.save();

Delete application

await application.delete();

License #

MIT License

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Dart and Flutter SDK for Hexabase

Homepage

License

unknown (license)

Dependencies

flutter, graphql

More

Packages that depend on hexabase