sqlite

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2023 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New init new sqlite connection

Types

type Config

type Config struct {
	Pool []Item `yaml:"sqlite"`
}

Config pool of configs

func (*Config) List

func (c *Config) List() (list []schema.ItemInterface)

List getting all configs

type Item

type Item struct {
	Name        string `yaml:"name"`
	File        string `yaml:"file"`
	Cache       string `yaml:"cache"`
	Mode        string `yaml:"mode"`
	Journal     string `yaml:"journal"`
	LockingMode string `yaml:"locking_mode"`
	OtherParams string `yaml:"other_params"`
}

Item config model

func (Item) GetDSN

func (i Item) GetDSN() string

GetDSN connection params

func (Item) GetName

func (i Item) GetName() string

GetName getting config name

func (Item) Setup

func (i Item) Setup(_ schema.SetupInterface)

Setup setting config conntections params

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL