How to use the datascript.transact function in datascript

To help you get started, we’ve selected a few datascript examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gurdasnijor / react-datascript / src / withDatascriptQuery.js View on Github external
transactData = (data, txMsg) => {
        datascript.transact(this.conn, data, txMsg);
      }
github gurdasnijor / react-datascript / examples / follower-graph / createDBConn.js View on Github external
{
      ':db/id': -2,
      name: 'David',
      follows: [-3, -1]
    },
    {
      ':db/id': -3,
      name: 'Jane'
    }
  ];

  /**
   * Transact in the data, to be stored and indexed by datascript for performant
   * querying.
   */
  datascript.transact(conn, datoms);
  return conn;
};

datascript

Immutable in-memory triplestore with Datalog queries

EPL-1.0
Latest version published 2 days ago

Package Health Score

76 / 100
Full package analysis