esqlite

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package esqlite Description: sqlite数据库操作封装

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESqlite

type ESqlite struct {
	ESqliteI
	// contains filtered or unexported fields
}

func NewESqlite

func NewESqlite() *ESqlite

func (*ESqlite) E关闭数据库

func (e *ESqlite) E关闭数据库() error

func (*ESqlite) E打开内存数据库

func (e *ESqlite) E打开内存数据库() error

func (*ESqlite) E打开数据库

func (e *ESqlite) E打开数据库(数据库文件 string) error

func (*ESqlite) E执行SQL

func (e *ESqlite) E执行SQL(命令 string) error

func (*ESqlite) E执行事务

func (e *ESqlite) E执行事务(f func(tx *gorm.DB) error) error

func (*ESqlite) E执行查询SQL

func (e *ESqlite) E执行查询SQL(命令 string) ([]map[string]interface{}, error)

type ESqliteI

type ESqliteI interface {
	E打开数据库(数据库文件 string) error
	E打开内存数据库() error
	E关闭数据库() error
	E执行SQL(命令 string) error
	E执行查询SQL(命令 string) ([]map[string]interface{}, error)
	E执行事务(f func(tx *gorm.DB) error) error
}

Jump to

Keyboard shortcuts

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