sqlite3_sqlboiler

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

sqlboiler_sqlite配置

sqlite配置必须在[sdk]段落下, 同时必须包含[sdk.log], 日志能力[sdk.log]的配置是最基本需求的配置,不管使用sdk的时候是否具有其他能力, 日志配置信息必须要包含

配置示例

[sdk.sqlite3]
    dbname="test.db"

sqlboiler_sqlite使用指南

示例

    

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Capability = types.Capability{
	Name:     providerName,
	Category: types.ProviderCategoryDb,
	Module: fx.Module(
		providerName,
		fx.Provide(New),
	),
}

Functions

func New

func New(configProvider types.ConfigProvider, logger types.LoggerProvider) (types.DbProvider, error)

func NewClient

func NewClient(dbFile string) (types.DbClient, error)

NewClient 从指定的文件创建创建数据库连接

Types

This section is empty.

Jump to

Keyboard shortcuts

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