Skip to content

Instantly share code, notes, and snippets.

@JoeyBodnar
Created November 5, 2017 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeyBodnar/49947ea79c529db5c898328c698488c2 to your computer and use it in GitHub Desktop.
Save JoeyBodnar/49947ea79c529db5c898328c698488c2 to your computer and use it in GitHub Desktop.
{
"//": "The underlying database technology to use.",
"//": "memory: SQLite in-memory DB.",
"//": "sqlite: Persisted SQLite DB (configure with sqlite.json)",
"//": "Other drivers are available through Vapor providers",
"//": "https://github.com/search?q=topic:vapor-provider+topic:database",
"driver": "memory",
"//": "Naming convention to use for creating foreign id keys,",
"//": "e.g., `user_id`",
"//": "`camelCase` option is also available.",
"keyNamingConvention": "snake_case",
"//": "Name of the table Fluent uses to track migrations.",
"//": "If null, preparations will not be run.",
"migrationEntityName": "fluent",
"//": "Character used to join pivot tables, e.g., `user_pet`",
"pivotNameConnector": "_",
"//": "If true, foreign keys will automatically be added",
"//": "to any `builder.foreignId(...)` calls.",
"autoForeignKeys": true,
"//": "Key to specify page number for paginated responses",
"//": "e.g., `?page=2` ",
"defaultPageKey": "page",
"//": "Default page size if not otherwise specified on models",
"defaultPageSize": 10,
"//": "If true, all queries made to the database will be logged.",
"log": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment