mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
101 lines
2.4 KiB
Text
101 lines
2.4 KiB
Text
schema-error: fail to create field
|
|
{
|
|
"index-name": "examplekeys",
|
|
"index-action": "create",
|
|
"primary-key-type": "string",
|
|
"fields": [
|
|
{
|
|
"field-name": "cookie",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "none" }
|
|
},
|
|
{
|
|
"field-name": "set",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "nun" }
|
|
}
|
|
]
|
|
}
|
|
schema: confirm index was not created because field failed
|
|
{
|
|
"index-name": "examplekeys",
|
|
"index-action": "create",
|
|
"primary-key-type": "string",
|
|
"fields": [
|
|
{
|
|
"field-name": "set",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "none" }
|
|
}
|
|
]
|
|
}
|
|
schema-error: can't recreate index
|
|
{
|
|
"index-name": "examplekeys",
|
|
"index-action": "create",
|
|
"primary-key-type": "string",
|
|
"fields": [
|
|
{
|
|
"field-name": "newfield",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "none" }
|
|
}
|
|
]
|
|
}
|
|
schema: can add field to existing index
|
|
{
|
|
"index-name": "examplekeys",
|
|
"index-action": "ensure",
|
|
"primary-key-type": "string",
|
|
"fields": [
|
|
{
|
|
"field-name": "newfield",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "none" }
|
|
}
|
|
]
|
|
}
|
|
schema-error: second field failing in existing index
|
|
{
|
|
"index-name": "examplekeys",
|
|
"index-action": "ensure",
|
|
"primary-key-type": "string",
|
|
"fields": [
|
|
{
|
|
"field-name": "addokay",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "none" }
|
|
},
|
|
{
|
|
"field-name": "addfail",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "nun" }
|
|
}
|
|
]
|
|
}
|
|
schema: verify that fields we think exist do exist
|
|
{
|
|
"index-name": "examplekeys",
|
|
"index-action": "require",
|
|
"primary-key-type": "string",
|
|
"fields": [
|
|
{
|
|
"field-name": "newfield",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "none" }
|
|
}
|
|
]
|
|
}
|
|
schema-error: successful field deleted anyway because second field failed
|
|
{
|
|
"index-name": "examplekeys",
|
|
"index-action": "require",
|
|
"primary-key-type": "string",
|
|
"fields": [
|
|
{
|
|
"field-name": "addokay",
|
|
"field-type": "id",
|
|
"field-options": { "cache-type": "none" }
|
|
}
|
|
]
|
|
}
|