Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
Database holds the database configuration for the internal ORM. This allows a driver-agnostic way to configure and startup Response leaving all driver-specific configuration to each individual driver's implementation.
type Driver ¶
type Driver string
Driver is a specifid database driver used to store persisted data in Response.
const ( // EmbeddedDriver provides an in-memory storage implementation based on sqlite3's in-memory // database. This should not be used in production as data is not persisted. EmbeddedDriver Driver = "embedded" )
const ( // PostgresDriver implements storage using a supported PostgreSQL version (currently only 10, 11, or 12). // This driver is safe for production use and is the preferred production database. PostgresDriver Driver = "postgres" )
const ( // SQLiteDriver uses an SQLite3 implementation that stores a file at ./data/db.sqlite by default. // This path can be configured. This driver is not intended for production and should only be used // when persisting is necessary for development or testing purposes. SQLiteDriver Driver = "sqlite" )
Click to show internal directories.
Click to hide internal directories.