mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 01:54:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			514 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			514 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:appflowy_backend/dispatch/dispatch.dart';
 | |
| import 'package:appflowy_backend/protobuf/flowy-database2/database_entities.pb.dart';
 | |
| import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
 | |
| import 'package:dartz/dartz.dart';
 | |
| 
 | |
| class DatabaseBackendService {
 | |
|   static Future<Either<List<DatabaseDescriptionPB>, FlowyError>>
 | |
|       getAllDatabases() {
 | |
|     return DatabaseEventGetDatabases().send().then((result) {
 | |
|       return result.fold((l) => left(l.items), (r) => right(r));
 | |
|     });
 | |
|   }
 | |
| }
 | 
