@zhin.js/database 1.0.7 → 1.0.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @zhin.js/database
2
2
 
3
+ ## 1.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [26aba27]
8
+ - zhin.js@1.0.22
9
+
10
+ ## 1.0.8
11
+
12
+ ### Patch Changes
13
+
14
+ - zhin.js@1.0.21
15
+
3
16
  ## 1.0.7
4
17
 
5
18
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/database",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Universal database abstraction layer for Zhin.js - supports SQLite, MySQL, PostgreSQL, MongoDB, Redis",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -19,7 +19,7 @@
19
19
  "pg": "^7.1.2",
20
20
  "mongodb": "^3.1.13",
21
21
  "redis": "latest",
22
- "zhin.js": "1.0.20"
22
+ "zhin.js": "1.0.22"
23
23
  },
24
24
  "peerDependenciesMeta": {
25
25
  "sqlite3": {
@@ -47,7 +47,7 @@
47
47
  "redis": "latest",
48
48
  "@types/pg": "latest",
49
49
  "@types/sqlite3": "latest",
50
- "zhin.js": "1.0.20"
50
+ "zhin.js": "1.0.22"
51
51
  },
52
52
  "repository": {
53
53
  "type": "git",
@@ -0,0 +1,51 @@
1
+ import { describe, it, expect } from 'vitest'
2
+
3
+ describe('Database Dialects', () => {
4
+ describe('Memory Dialect', () => {
5
+ it('should export MemoryDialect', async () => {
6
+ const { MemoryDialect } = await import('../src/dialects/memory')
7
+ expect(MemoryDialect).toBeDefined()
8
+ expect(typeof MemoryDialect).toBe('function')
9
+ })
10
+ })
11
+
12
+ describe('MySQL Dialect', () => {
13
+ it('should export MySQLDialect', async () => {
14
+ const { MySQLDialect } = await import('../src/dialects/mysql')
15
+ expect(MySQLDialect).toBeDefined()
16
+ expect(typeof MySQLDialect).toBe('function')
17
+ })
18
+ })
19
+
20
+ describe('PostgreSQL Dialect', () => {
21
+ it('should export PostgreSQLDialect', async () => {
22
+ const { PostgreSQLDialect } = await import('../src/dialects/pg')
23
+ expect(PostgreSQLDialect).toBeDefined()
24
+ expect(typeof PostgreSQLDialect).toBe('function')
25
+ })
26
+ })
27
+
28
+ describe('MongoDB Dialect', () => {
29
+ it('should export MongoDBDialect', async () => {
30
+ const { MongoDBDialect } = await import('../src/dialects/mongodb')
31
+ expect(MongoDBDialect).toBeDefined()
32
+ expect(typeof MongoDBDialect).toBe('function')
33
+ })
34
+ })
35
+
36
+ describe('Redis Dialect', () => {
37
+ it('should export RedisDialect', async () => {
38
+ const { RedisDialect } = await import('../src/dialects/redis')
39
+ expect(RedisDialect).toBeDefined()
40
+ expect(typeof RedisDialect).toBe('function')
41
+ })
42
+ })
43
+
44
+ describe('SQLite Dialect', () => {
45
+ it('should export SQLiteDialect', async () => {
46
+ const { SQLiteDialect } = await import('../src/dialects/sqlite')
47
+ expect(SQLiteDialect).toBeDefined()
48
+ expect(typeof SQLiteDialect).toBe('function')
49
+ })
50
+ })
51
+ })