psql

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 6 Imported by: 0

README

gFly Database - PostgreSQL

Copyright © 2023, gFly
https://www.gfly.dev
All rights reserved.

Fluent Model - flexible and powerful Data-Access Layer. Build on top of Fluent SQL

Usage

Install

go get -u github.com/gflydev/db@v1.0.0
go get -u github.com/gflydev/db/psql@v1.1.0

Quick usage main.go

import (
    mb "github.com/gflydev/db"
    dbPSQL "github.com/gflydev/db/psql"
)

func main() {
    // Register DB driver & Load Model builder
    mb.Register(dbPSQL.New())
    mb.Load()
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQL

type PostgreSQL struct{}

PostgreSQL a implement of interface IDatabase for PostgreSQL

func New

func New() *PostgreSQL

New initial PostgreSQL driver and register to database manager

func (*PostgreSQL) Load

func (d *PostgreSQL) Load() (*sqlx.DB, error)

Load perform DB connection to PostgreSQL database.

Jump to

Keyboard shortcuts

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