@aphro/schema-api
Advanced tools
Comparing version 0.0.8 to 0.0.9
# @aphro/schema-api | ||
## 0.0.9 | ||
### Patch Changes | ||
- graphql support, 'create table if not exists' for easier bootstrapping, @databases connection support | ||
## 0.0.8 | ||
@@ -4,0 +10,0 @@ |
@@ -12,2 +12,3 @@ export declare type ValidationError = { | ||
db: string; | ||
[key: string]: string; | ||
}; | ||
@@ -90,2 +91,3 @@ entities: (NodeAst | EdgeAst | NodeTraitAst)[]; | ||
engine: StorageEngine; | ||
[key: string]: string; | ||
}; | ||
@@ -110,3 +112,3 @@ export declare type Edge = { | ||
export declare type EdgeReference = string; | ||
declare type NonComplexField = ID | NaturalLanguage | Enum | Currency | Time | Primitive; | ||
declare type NonComplexField = ID | NaturalLanguage | Enum | Time | Primitive; | ||
declare type ComplexField = MapField | ArrayField; | ||
@@ -174,3 +176,3 @@ export declare type Field = NonComplexField | ComplexField; | ||
} & FieldBase; | ||
declare type Enum = { | ||
export declare type Enum = { | ||
name: string; | ||
@@ -180,7 +182,2 @@ type: 'enumeration'; | ||
} & FieldBase; | ||
declare type Currency = { | ||
name: string; | ||
type: 'currency'; | ||
denomination: string; | ||
} & FieldBase; | ||
declare type Time = { | ||
@@ -190,3 +187,3 @@ name: string; | ||
} & FieldBase; | ||
export declare const primitives: readonly ["bool", "int32", "int64", "float32", "float64", "uint32", "uint64", "string", "null"]; | ||
export declare const primitives: readonly ["bool", "int32", "int64", "float32", "float64", "uint32", "uint64", "string", "null", "any"]; | ||
export declare type PrimitiveSubtype = typeof primitives[number]; | ||
@@ -193,0 +190,0 @@ declare type Primitive = { |
@@ -11,3 +11,4 @@ export const primitives = [ | ||
'null', | ||
'any', | ||
]; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aphro/schema-api", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -14,3 +14,3 @@ export type ValidationError = { | ||
export type StorageEngine = 'sqlite'; //'postgres' | 'mysql' | 'sqlite'; // | maria | neo4j | redis ... | ||
export type StorageEngine = 'sqlite'; //| 'postgres'; //| 'mysql' | 'sqlite'; // | maria | neo4j | redis ... | ||
export type StorageType = 'sql'; // opencypher | ||
@@ -22,2 +22,3 @@ | ||
db: string; | ||
[key: string]: string; // other engine-specific values | ||
}; | ||
@@ -109,6 +110,7 @@ entities: (NodeAst | EdgeAst | NodeTraitAst)[]; | ||
export type StorageConfig = { | ||
type: 'sql'; | ||
type: 'sql'; // | cypher | gremlin | ... | ||
db: string; | ||
tablish: string; | ||
engine: StorageEngine; | ||
[key: string]: string; // engine specific extras | ||
}; // | { type: "opencypher" } ...; | ||
@@ -137,3 +139,3 @@ | ||
type NonComplexField = ID | NaturalLanguage | Enum | Currency | Time | Primitive; | ||
type NonComplexField = ID | NaturalLanguage | Enum | Time | Primitive; | ||
@@ -218,3 +220,3 @@ type ComplexField = MapField | ArrayField; | ||
type Enum = { | ||
export type Enum = { | ||
name: string; | ||
@@ -225,8 +227,2 @@ type: 'enumeration'; | ||
type Currency = { | ||
name: string; | ||
type: 'currency'; | ||
denomination: string; | ||
} & FieldBase; | ||
type Time = { | ||
@@ -247,2 +243,3 @@ name: string; | ||
'null', | ||
'any', | ||
] as const; | ||
@@ -249,0 +246,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38382
551