Skip to content

Commit a527437

Browse files
committed
Document “partial db” during transaction tonsky#366
1 parent 995f8a2 commit a527437

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,7 @@ Interface differences:
264264
* Custom aggregate functions are called via aggregate keyword: `:find (aggregate ?myfn ?e) :in $ ?myfn`
265265
* Additional `:db.fn/retractAttribute` shortcut
266266
* Transactions are not annotated by default with `:db/txInstant`
267-
268-
Expected soon:
269-
270-
* Better error reporting
271-
* Proper documentation
267+
* When “transaction function” is called, the db that this function receive is a “partial db” relative to it's position in transaction.
272268

273269
## Differences from Datomic
274270

@@ -277,13 +273,10 @@ Expected soon:
277273
* Simplified schema, not queryable
278274
* Attributes do not have to be declared in advance. Put them to schema only when you need special behaviour from them
279275
* Any type can be used for values
280-
* No `:db/ident` attributes, keywords are _literally_ attribute values, no integer id behind them
276+
* No `:db/ident` for attributes, keywords are _literally_ attribute values, no integer id behind them
281277
* No schema migrations
282-
* No cache segments management, no laziness. Entire DB must reside in memory
283-
* No facilities to persist, transfer over the wire or sync DB with the server
284-
* No pluggable storage options, no full-text search, no partitions
278+
* No full-text search, no partitions
285279
* No external dependencies
286-
* Free
287280

288281
Aimed at interactive, long-living browser applications, DataScript DBs operate in constant space. If you do not add new entities, just update existing ones, or clean up database from time to time, memory consumption will be limited. This is unlike Datomic which keeps history of all changes, thus grows monotonically. DataScript does not track history by default, but you can do it via your own code if needed.
289282

@@ -324,6 +317,6 @@ Benchmark:
324317

325318
## License
326319

327-
Copyright © 2014–2021 Nikita Prokopov
320+
Copyright © 2014–2024 Nikita Prokopov
328321

329322
Licensed under Eclipse Public License (see [LICENSE](LICENSE)).

0 commit comments

Comments
 (0)