-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.ts
More file actions
39 lines (35 loc) · 962 Bytes
/
Copy pathmod.ts
File metadata and controls
39 lines (35 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* EasyKV - A simple, type-safe ORM for Deno KV.
*
* This is the main entry point for the EasyKV package.
*
* Example usage:
* ```typescript
* import { Collection, connect, disconnect, getKv } from "easykv";
*
* interface User extends EKDataModel {
* name: string;
* age: number;
* }
*
* await connect();
* const users = new Collection<User>("users");
* await users.save({ name: "Alice", age: 30 });
* ```
*/
// Main Collection class for working with entities
export { Collection } from "./lib/collection.ts";
// Database utilities (advanced/optional)
export { Database } from "./lib/database/db.ts";
// Connection helpers for Deno KV
export { connect, disconnect, getKv } from "./lib/database/index.ts";
// Core types for type-safety and advanced use
export type {
EKDataModel,
EKDeleteCount,
EKDisconnectKvType,
EKFindEntry,
EKFindManyEntry,
EKSaveResponse,
EKUpdateType,
} from "./lib/types/index.ts";