mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-29 17:04:52 +00:00 
			
		
		
		
	 bb414c3fd6
			
		
	
	
		bb414c3fd6
		
			
		
	
	
	
	
		
			
			* chore: enable relation to * chore: fix database name and improve UI * chore: remove database view id from relation type option * chore: add remove row id test * chore: improve appearance of untitled rows * chore: empty in row detail * fix: cannot add events after closing --------- Co-authored-by: Richard Shiue <71320345+richardshiue@users.noreply.github.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			586 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			586 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:appflowy_result/appflowy_result.dart';
 | |
| 
 | |
| class DatabaseBackendService {
 | |
|   static Future<FlowyResult<List<DatabaseMetaPB>, FlowyError>>
 | |
|       getAllDatabases() {
 | |
|     return DatabaseEventGetDatabases().send().then((result) {
 | |
|       return result.fold(
 | |
|         (l) => FlowyResult.success(l.items),
 | |
|         (r) => FlowyResult.failure(r),
 | |
|       );
 | |
|     });
 | |
|   }
 | |
| }
 |