@cwqt/refract
Advanced tools
Comparing version 1.3.5 to 1.3.6
import * as Types from '../types'; | ||
export declare const column: (column: Types.Column) => string; | ||
export declare const enumeration: (column: Types.Column<'Enum'>) => any; | ||
export declare const enumeration: (column: Types.Column<'Enum'>) => string; |
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -5,0 +9,0 @@ if (k2 === undefined) k2 = k; |
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -5,0 +9,0 @@ if (k2 === undefined) k2 = k; |
@@ -12,3 +12,3 @@ export * from './public/modifiers'; | ||
import * as Types from './types'; | ||
declare const _default: (config: Types.Config) => any; | ||
declare const _default: (config: Types.Config) => Promise<void>; | ||
export default _default; |
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -5,0 +9,0 @@ if (k2 === undefined) k2 = k; |
import * as Types from '../../types'; | ||
export declare const Int: <M extends "raw" | "map" | "default" | "id" | "@db.postgresql.SmallInt" | "@db.postgresql.Oid" | "@db.mysql.UnsignedSmallInt" | "@db.mysql.MediumInt" | "@db.mysql.UnsignedMediumInt" | "@db.mysql.Year" | "@db.cockroachdb.Int2" | "@db.cockroachdb.Int4" | "@db.cockroachdb.Oid" | "comment" | "unique" | "nullable" | "ignore" | "array">(...modifiers: Types.Modifier<"Int", M>[]) => { | ||
export declare const Int: <M extends "raw" | "map" | "default" | "id" | "@db.postgresql.SmallInt" | "@db.postgresql.Oid" | "@db.mysql.UnsignedSmallInt" | "@db.mysql.MediumInt" | "@db.mysql.UnsignedMediumInt" | "@db.mysql.Year" | "@db.cockroachdb.Int2" | "@db.cockroachdb.Int4" | "@db.cockroachdb.Oid" | "comment" | "nullable" | "ignore" | "array" | "unique">(...modifiers: Types.Modifier<"Int", M>[]) => { | ||
type: "Int"; | ||
modifiers: Types.Modifier<"Int", M>[]; | ||
}; | ||
export declare const String: <M extends "raw" | "map" | "default" | "id" | "@db.mongodb.ObjectId" | "@db.mongodb.String" | "@db.postgresql.Text" | "@db.postgresql.Inet" | "@db.postgresql.Uuid" | "@db.postgresql.Xml" | "@db.postgresql.Citext" | "@db.postgresql.Char" | "@db.postgresql.VarChar" | "@db.postgresql.Bit" | "@db.postgresql.VarBit" | "@db.mysql.Text" | "@db.mysql.Char" | "@db.mysql.VarChar" | "@db.cockroachdb.CatalogSingleChar" | "@db.cockroachdb.String" | "@db.cockroachdb.Inet" | "@db.cockroachdb.Uuid" | "@db.cockroachdb.Char" | "@db.cockroachdb.Bit" | "@db.cockroachdb.VarBit" | "comment" | "unique" | "nullable" | "ignore" | "array" | "limit">(...modifiers: Types.Modifier<"String", M>[]) => { | ||
export declare const String: <M extends "raw" | "map" | "default" | "id" | "@db.mongodb.ObjectId" | "@db.mongodb.String" | "@db.postgresql.Text" | "@db.postgresql.Inet" | "@db.postgresql.Uuid" | "@db.postgresql.Xml" | "@db.postgresql.Citext" | "@db.postgresql.Char" | "@db.postgresql.VarChar" | "@db.postgresql.Bit" | "@db.postgresql.VarBit" | "@db.mysql.Text" | "@db.mysql.Char" | "@db.mysql.VarChar" | "@db.cockroachdb.CatalogSingleChar" | "@db.cockroachdb.String" | "@db.cockroachdb.Inet" | "@db.cockroachdb.Uuid" | "@db.cockroachdb.Char" | "@db.cockroachdb.Bit" | "@db.cockroachdb.VarBit" | "comment" | "nullable" | "ignore" | "array" | "unique" | "limit">(...modifiers: Types.Modifier<"String", M>[]) => { | ||
type: "String"; | ||
modifiers: Types.Modifier<"String", M>[]; | ||
}; | ||
export declare const Float: <M extends "raw" | "map" | "default" | "@db.postgresql.Real" | "@db.postgresql.DoublePrecision" | "@db.mysql.Float" | "@db.mysql.Double" | "@db.cockroachdb.Float4" | "@db.cockroachdb.Float8" | "comment" | "unique" | "nullable" | "ignore" | "array">(...modifiers: Types.Modifier<"Float", M>[]) => { | ||
export declare const Float: <M extends "raw" | "map" | "default" | "@db.postgresql.Real" | "@db.postgresql.DoublePrecision" | "@db.mysql.Float" | "@db.mysql.Double" | "@db.cockroachdb.Float4" | "@db.cockroachdb.Float8" | "comment" | "nullable" | "ignore" | "array" | "unique">(...modifiers: Types.Modifier<"Float", M>[]) => { | ||
type: "Float"; | ||
modifiers: Types.Modifier<"Float", M>[]; | ||
}; | ||
export declare const BigInt: <M extends "raw" | "map" | "default" | "@db.postgresql.BigInt" | "@db.mysql.UnsignedBigInt" | "@db.mysql.BigInt" | "@db.mysql.SmallInt" | "@db.cockroachdb.Int8" | "comment" | "unique" | "nullable" | "ignore" | "array">(...modifiers: Types.Modifier<"BigInt", M>[]) => { | ||
export declare const BigInt: <M extends "raw" | "map" | "default" | "@db.postgresql.BigInt" | "@db.mysql.UnsignedBigInt" | "@db.mysql.BigInt" | "@db.mysql.SmallInt" | "@db.cockroachdb.Int8" | "comment" | "nullable" | "ignore" | "array" | "unique">(...modifiers: Types.Modifier<"BigInt", M>[]) => { | ||
type: "BigInt"; | ||
modifiers: Types.Modifier<"BigInt", M>[]; | ||
}; | ||
export declare const Bytes: <M extends "raw" | "map" | "default" | "@db.postgresql.ByteA" | "@db.mysql.VarBinary" | "@db.mysql.LongBlog" | "@db.mysql.TinyBlob" | "@db.mysql.MediumBlob" | "@db.mysql.Blob" | "@db.mysql.Binary" | "@db.mysql.Bit" | "comment" | "unique" | "nullable" | "ignore" | "array">(...modifiers: Types.Modifier<"Bytes", M>[]) => { | ||
export declare const Bytes: <M extends "raw" | "map" | "default" | "@db.postgresql.ByteA" | "@db.mysql.VarBinary" | "@db.mysql.LongBlog" | "@db.mysql.TinyBlob" | "@db.mysql.MediumBlob" | "@db.mysql.Blob" | "@db.mysql.Binary" | "@db.mysql.Bit" | "comment" | "nullable" | "ignore" | "array" | "unique">(...modifiers: Types.Modifier<"Bytes", M>[]) => { | ||
type: "Bytes"; | ||
modifiers: Types.Modifier<"Bytes", M>[]; | ||
}; | ||
export declare const Boolean: <M extends "raw" | "map" | "default" | "@db.postgresql.Boolean" | "@db.mysql.TinyInt" | "@db.cockroachdb.Bool" | "comment" | "unique" | "nullable" | "ignore" | "array">(...modifiers: Types.Modifier<"Boolean", M>[]) => { | ||
export declare const Boolean: <M extends "raw" | "map" | "default" | "@db.postgresql.Boolean" | "@db.mysql.TinyInt" | "@db.cockroachdb.Bool" | "comment" | "nullable" | "ignore" | "array" | "unique">(...modifiers: Types.Modifier<"Boolean", M>[]) => { | ||
type: "Boolean"; | ||
@@ -34,5 +34,5 @@ modifiers: Types.Modifier<"Boolean", M>[]; | ||
}; | ||
export declare const Decimal: <M extends "raw" | "map" | "default" | "@db.postgresql.Money" | "@db.postgresql.Decimal" | "@db.mysql.Decimal" | "@db.cockroachdb.Decimal" | "comment" | "unique" | "nullable" | "ignore" | "array">(...modifiers: Types.Modifier<"Decimal", M>[]) => { | ||
export declare const Decimal: <M extends "raw" | "map" | "default" | "@db.postgresql.Money" | "@db.postgresql.Decimal" | "@db.mysql.Decimal" | "@db.cockroachdb.Decimal" | "comment" | "nullable" | "ignore" | "array" | "unique">(...modifiers: Types.Modifier<"Decimal", M>[]) => { | ||
type: "Decimal"; | ||
modifiers: Types.Modifier<"Decimal", M>[]; | ||
}; |
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -5,0 +9,0 @@ if (k2 === undefined) k2 = k; |
{ | ||
"name": "@cwqt/refract", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "Generate Prisma from TypeScript", | ||
@@ -5,0 +5,0 @@ "author": "cwqt", |
130045
1834