# README

rqlite

rqlite://admin:[email protected]:4001/?level=strong&timeout=5

The rqlite url scheme is used for both secure and insecure connections. If connecting to an insecure database, pass x-connect-insecure in your URL query, or use WithInstance to pass an established connection.

The migrations table name is configurable through the x-migrations-table URL query parameter, or by using WithInstance and passing MigrationsTable through Config.

Other connect parameters are directly passed through to the database driver. For examples of connection strings, see https://github.com/rqlite/gorqlite#examples.

URL QueryWithInstance ConfigDescription
x-connect-insecuren/a: set on instanceBoolean to indicate whether to use an insecure connection. Defaults to false.
x-migrations-tableMigrationsTableName of the migrations table. Defaults to schema_migrations.

Notes

# Functions

OpenURL creates a rqlite database driver from a connect URL.
WithInstance creates a rqlite database driver with an existing gorqlite database connection and a Config struct.

# Constants

DefaultConnectInsecure defines the default setting for connect insecure.
DefaultMigrationsTable defines the default rqlite migrations table.

# Variables

ErrBadConfig is returned if configuration was invalid.
ErrNilConfig is returned if no configuration was passed to WithInstance.

# Structs

Config defines the driver configuration.
No description provided by the author