Skip to content

Commit

Permalink
* #267
Browse files Browse the repository at this point in the history
* Minors
  • Loading branch information
adamansky committed Dec 20, 2019
1 parent ca8522d commit a5a5750
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 40 deletions.
6 changes: 3 additions & 3 deletions src/bindings/ejdb2_flutter/lib/ejdb2_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class EJDB2 {
/// Create instance of [query].
JQL operator [](String query) => createQuery(query);

/// Save [json] document under specified [id] or create a document
/// Save [json] document under specified [id] or create a new document
/// with new generated `id`. Returns future holding actual document `id`.
Future<int> put(String collection, dynamic json, [int id]) => Future.sync(() => _mc
.invokeMethod('put', [
Expand Down Expand Up @@ -399,11 +399,11 @@ class EJDB2 {
});
}

/// Remove document idenfied by [id] from [collection].
/// Remove document identified by [id] from specified [collection].
Future<void> del(String collection, int id) =>
_mc.invokeMethod('del', [_handle, collection, id]).catchError(_handleError);

/// Remove document idenfied by [id] from [collection].
/// Remove document identified by [id] from specified [collection].
/// Doesn't raise error if document is not found.
Future<void> delIgnoreNotFound(String collection, int id) =>
del(collection, id).catchError((err) {
Expand Down
2 changes: 0 additions & 2 deletions src/bindings/ejdb2_swift/EJDB2Swift/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ let package = Package(
),
],
dependencies: [
//.package(url: "https://github.com/Softmotions/SwiftCoroutine", from: "1.0.1"),
],
targets: [
.systemLibrary(name: "EJDB2", pkgConfig: "libejdb2"),
.target(
name: "EJDB2Swift",
dependencies: [
"EJDB2",
//"SwiftCoroutine"
]),
.target(name: "EJDB2SwiftRun", dependencies: ["EJDB2Swift"]),
.testTarget(name: "EJDB2SwiftTests", dependencies: ["EJDB2Swift"]),
Expand Down
Loading

0 comments on commit a5a5750

Please sign in to comment.