Comparing version 1.0.226 to 1.0.227
@@ -56,2 +56,8 @@ /** | ||
$database_type: SupportedDatabases; | ||
$prepopulate?: { | ||
supercede: boolean; | ||
rows: { | ||
[x: string]: any; | ||
}[]; | ||
} | undefined; | ||
$fields: { | ||
@@ -58,0 +64,0 @@ [x: string]: { |
@@ -17,4 +17,9 @@ import { Edge } from '../../helpers/schema_helpers'; | ||
type OrmaIndex = Optional<Omit<IndexDefinition, '$constraint' | '$data_type'>, '$index'>; | ||
type Prepopulate = { | ||
supercede: boolean; | ||
rows: readonly Record<string, any>[]; | ||
}; | ||
type OrmaEntitySchema = Omit<RegularCreateStatement, '$definitions' | '$create_table' | '$if_not_exists' | '$temporary'> & { | ||
readonly $database_type: SupportedDatabases; | ||
readonly $prepopulate?: Prepopulate; | ||
readonly $fields: { | ||
@@ -21,0 +26,0 @@ readonly [field_name: string]: Omit<FieldDefinition, '$constraint' | '$index' | '$name'>; |
{ | ||
"name": "orma", | ||
"version": "1.0.226", | ||
"version": "1.0.227", | ||
"description": "A declarative relational syncronous orm", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
import { Edge } from '../../helpers/schema_helpers' | ||
import { Optional } from '../helper_types' | ||
import { OrmaMutation } from '../mutation/mutation_types' | ||
import { | ||
@@ -35,2 +36,7 @@ ConstraintDefinition, | ||
type Prepopulate = { | ||
supercede: boolean | ||
rows: readonly Record<string, any>[] // OrmaMutation<Schema>[Entity] | ||
} | ||
type OrmaEntitySchema = Omit< | ||
@@ -41,2 +47,3 @@ RegularCreateStatement, | ||
readonly $database_type: SupportedDatabases | ||
readonly $prepopulate?: Prepopulate | ||
readonly $fields: { | ||
@@ -62,2 +69,2 @@ readonly [field_name: string]: Omit< | ||
export type SupportedDatabases = 'mysql' | 'postgres' | 'sqlite' | ||
export type SupportedDatabases = 'mysql' | 'postgres' | 'sqlite' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1614575
346
39359