{"modulePath":"github.com/worldprogrammingltd/dex","version":"v2.13.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sql\n\nPackage sql provides SQL implementations of the storage interface.\n\n## Types\n\n```go\ntype Postgres struct {\n\tDatabase string\n\tUser     string\n\tPassword string\n\tHost     string\n\n\tSSL PostgresSSL `json:\"ssl\" yaml:\"ssl\"`\n\n\tConnectionTimeout int // Seconds\n}\n```\nPostgres options for creating an SQL db.\n\n```go\nfunc (p *Postgres) Open(logger logrus.FieldLogger) (storage.Storage, error)\n```\nOpen creates a new storage implementation backed by Postgres.\n\n```go\ntype PostgresSSL struct {\n\tMode   string\n\tCAFile string\n\t// Files for client auth.\n\tKeyFile  string\n\tCertFile string\n}\n```\nPostgresSSL represents SSL options for Postgres databases.\n\n```go\ntype SQLite3 struct {\n\t// File to\n\tFile string `json:\"file\"`\n}\n```\nSQLite3 options for creating an SQL db.\n\n```go\nfunc (s *SQLite3) Open(logger logrus.FieldLogger) (storage.Storage, error)\n```\nOpen creates a new storage implementation backed by SQLite3\n\n","path":"github.com/worldprogrammingltd/dex/storage/sql","name":"sql","synopsis":"Package sql provides SQL implementations of the storage interface.","isRedistributable":true}
