schema1 method

SdbIndexSchema schema1(
  1. String keyPath, {
  2. bool? unique,
})

Create store schema, keyPath is String, a List<String> or SdbKeyPath

Implementation

SdbIndexSchema schema1(String keyPath, {bool? unique}) {
  return SdbIndexSchema(
    this,
    SdbKeyPath.single(sdbKeyPath<I>(keyPath)),
    unique: unique ?? false,
  );
}