@stacksjs/orm 0.65.0 → 0.67.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.
- package/dist/index.js +227 -237
- package/package.json +7 -9
- package/dist/index.js.map +0 -637
- package/src/generated/types.ts +0 -0
- package/src/index.ts +0 -16
- package/src/types.ts +0 -11
- package/src/utils.ts +0 -1916
package/src/generated/types.ts
DELETED
|
File without changes
|
package/src/index.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// import { config } from '@stacksjs/config'
|
|
2
|
-
|
|
3
|
-
// import { dynamodbClient } from './drivers/dynamodb'
|
|
4
|
-
|
|
5
|
-
// if (config.database.default === 'dynamodb') {
|
|
6
|
-
// dynamodbClient.createTable('users', (table) => {
|
|
7
|
-
// table.string('id').primary()
|
|
8
|
-
// table.string('name')
|
|
9
|
-
// table.string('email')
|
|
10
|
-
// table.string('password')
|
|
11
|
-
// table.timestamps()
|
|
12
|
-
// })
|
|
13
|
-
// }
|
|
14
|
-
|
|
15
|
-
export * from '../../../orm/src/types'
|
|
16
|
-
export * from './utils'
|
package/src/types.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface OrmDriver {
|
|
2
|
-
find: (id: number) => Promise<any>
|
|
3
|
-
create: (data: any) => Promise<any>
|
|
4
|
-
update: (id: number, data: any) => Promise<any>
|
|
5
|
-
delete: (id: number) => Promise<any>
|
|
6
|
-
all: () => Promise<any[]>
|
|
7
|
-
where: (column: string, value: any) => Promise<any[]>
|
|
8
|
-
// Custom methods
|
|
9
|
-
// createTable: (tableName: string, callback: (table: Table) => void) => Promise<void>;
|
|
10
|
-
// dropTable: (tableName: string) => Promise<void>; -- i don't think we need this bc we do not support the down method
|
|
11
|
-
}
|