rado 0.3.8 → 0.3.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.
@@ -44,7 +44,7 @@ export declare class ValueColumn<T> extends Callable implements Column<T> {
44
44
  [Column.Type]: T;
45
45
  [Column.Data]: PartialColumnData;
46
46
  constructor(data: PartialColumnData);
47
- get nullable(): ValueColumn<T | null>;
47
+ get nullable(): NullableValueColumn<T>;
48
48
  get unique(): ValueColumn<T>;
49
49
  get autoIncrement(): OptionalColumn<T>;
50
50
  primaryKey<K = string>(create?: () => EV<T>): PrimaryColumn<T, K>;
@@ -203,7 +203,7 @@ class AsyncDriver extends DriverBase {
203
203
  try {
204
204
  const res = await fn(...args);
205
205
  if (logQuery)
206
- logQuery(stmt, (performance.now() - startTime) / 1e3);
206
+ logQuery(stmt, performance.now() - startTime);
207
207
  return res;
208
208
  } catch (e) {
209
209
  throw new SqlError(e, stmt.sql);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",