@vinctus/oql 1.0.0 → 1.1.0-alpha.3

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.
Files changed (4) hide show
  1. package/README.md +4 -6
  2. package/index.d.ts +20 -0
  3. package/index.js +84752 -41554
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -68,14 +68,11 @@ Add the following lines to your `build.sbt`:
68
68
  ```sbt
69
69
  externalResolvers += "OQL" at "https://maven.pkg.github.com/vinctustech/oql"
70
70
 
71
- libraryDependencies += "com.vinctus" %%% "-vinctus-oql" % "1.0.0"
71
+ libraryDependencies += "com.vinctus" %%% "-vinctus-oql" % "1.0.0-RC.3.23"
72
72
 
73
73
  Compile / npmDependencies ++= Seq(
74
- "pg" -> "8.7.3",
75
- "@types/pg" -> "8.6.4",
76
- "source-map-support" -> "0.5.21",
77
- "big.js" -> "6.1.1",
78
- "@types/big.js" -> "6.1.3"
74
+ "pg" -> "8.5.1",
75
+ "@types/pg" -> "7.14.7"
79
76
  )
80
77
  ```
81
78
 
@@ -189,3 +186,4 @@ License
189
186
  -------
190
187
 
191
188
  OQL uses the commercial friendly open source [ISC](https://raw.githubusercontent.com/vinctustech/oql/stable/LICENSE) license.
189
+
package/index.d.ts CHANGED
@@ -61,3 +61,23 @@ export class OQL {
61
61
  raw<T = any>(sql: string, values?: any[]): Promise<T[]>
62
62
 
63
63
  }
64
+
65
+ export class OQL_RDB {
66
+
67
+ constructor(dm: string)
68
+
69
+ showQuery(): void
70
+
71
+ entity(name: string): Mutation
72
+
73
+ queryBuilder<T = any>(fixed?: string, at?: any): QueryBuilder<T>
74
+
75
+ queryOne<T = any>(oql: string, parameters?: any, fixed?: string, at?: any): Promise<T | undefined>
76
+
77
+ queryMany<T = any>(oql: string, parameters?: any, fixed?: string, at?: any): Promise<T[]>
78
+
79
+ count(oql: string, parameters?: any, fixed?: string, at?: any): Promise<number>
80
+
81
+ raw<T = any>(sql: string, values?: any[]): Promise<T[]>
82
+
83
+ }