update
This commit is contained in:
parent
f87e1511bc
commit
e48e400e43
13 changed files with 333 additions and 33 deletions
22
lib/tables/stocks.dart
Normal file
22
lib/tables/stocks.dart
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import 'package:supabase_flutter/supabase_flutter.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
class Stocks {
|
||||
final SupabaseClient _supabase = Supabase.instance.client;
|
||||
|
||||
// Future<List> getList() async {
|
||||
// final data = await _supabase.from('stocks').select('type_name').order('type_name', ascending: true);
|
||||
// return data.toList();
|
||||
// }
|
||||
|
||||
// Future<String> getUUID(String name) async {
|
||||
// final data = await _supabase.from('ref_types').select('ref_types_uuid').eq('type_name', name);
|
||||
// return data.first['ref_types_uuid'].toString();
|
||||
// }
|
||||
|
||||
// Future<void> postType(String name) async {
|
||||
// final typeUUID = Uuid().v4();
|
||||
|
||||
// await _supabase.from('ref_types').insert({'ref_types_uuid': typeUUID, 'type_name': name});
|
||||
// }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue