@crvouga/sqlite-mem 0.2.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import type { Clock } from "./clock.js";
2
- import type { Prng } from "./prng.js";
3
2
  /** Options for {@link Database} construction. All fields are optional. */
4
3
  export interface DatabaseOptions {
5
4
  /**
@@ -13,8 +12,6 @@ export interface DatabaseOptions {
13
12
  * Pass a `Date` or `() => Date` to override.
14
13
  */
15
14
  now?: Date | Clock;
16
- /** Optional pre-built PRNG (takes precedence over `seed`). */
17
- prng?: Prng;
18
15
  }
19
16
  /** Default {@link DatabaseOptions.seed} when constructing a {@link Database}. */
20
17
  export declare const DEFAULT_DATABASE_SEED = 1;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Unstable internals for advanced tooling and the sqlite-mem test suite.
4
+ *
5
+ * **Exempt from semver.** Anything exported from `@crvouga/sqlite-mem/unstable`
6
+ * may change or be removed in any release (including patch). Prefer the stable
7
+ * entry `@crvouga/sqlite-mem` for application code.
8
+ *
9
+ * @module
10
+ */
11
+ export type { Expr } from "./ast/nodes.js";
12
+ export type { EvalContext } from "./expressions/context.js";
13
+ export { evalExpr } from "./expressions/eval.js";
14
+ export { globMatch, likeMatch } from "./expressions/like.js";
15
+ export { tokenize, type Token, type TokenKind } from "./lexer/tokenize.js";
16
+ export { parse, type ParsedStatement } from "./parser/index.js";
17
+ export { type Clock, DEFAULT_DATABASE_SEED, DEFAULT_NOW, deriveSeed, fixedClock, Prng, resolveClock, } from "./runtime/index.js";
18
+ export { type DecodedSnapshot, decodeDatabaseState, encodeDatabaseState, type SnapshotRuntime, } from "./serialization/index.js";
19
+ export type { DatabaseState } from "./storage/database-state.js";
20
+ export { type Affinity, affinityFromTypeName, applyAffinity, asSqlJsonText, asSqlReal, canonicalizeNumber, cloneSqlValue, coerceToNumber, compareSql, isSqlJsonText, isSqlReal, isTruthySql, SqlJsonText, SqlReal, type SqlValue, type StorageClass, sqlValueEquals, storageClassOf, toInteger, typeofSql, utf8Decode, utf8Encode, } from "./types/value.js";