Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/gopi-frame/database/sqlite

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gopi-frame/database/sqlite

  • v0.0.0-20240723062300-dab9afff841c
  • Source
  • Go
  • Socket score

Version published
Created
Source

Sqlite

Package sqlite provides sqlite database driver.

Installation

go get -u github.com/gopi-frame/database/sqlite

Import

import _ "github.com/gopi-frame/database/sqlite"

Usage

package main

import (
	"github.com/gopi-frame/database"
	
	_ "github.com/gopi-frame/database/sqlite"
)

func main() {
	db, err := database.Connect("sqlite", map[string]any{
		"dsn": "file:test.db",
    })
	if err != nil {
		panic(err)
	}
}

Options

This package uses package mapstructure to parse options.

For more information on the options, see sqlite.Config.

Example

var options = map[string]any{
	"dsn": "file:test.db",
}

FAQs

Package last updated on 23 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc