gf/contrib/drivers
2022-02-19 17:49:53 +08:00
..
clickhouse improve clickhouse driver 2022-02-19 17:49:53 +08:00
mssql fix issue #1537 2022-02-15 23:43:47 +08:00
mysql fix string print for time only gtime.Time; improve package drivers 2022-01-27 12:04:46 +08:00
oracle fix issue #1537 2022-02-15 23:43:47 +08:00
pgsql fix issue #1537 2022-02-15 23:43:47 +08:00
sqlite fix issue #1537 2022-02-15 23:43:47 +08:00
README.md fix string print for time only gtime.Time; improve package drivers 2022-01-27 12:04:46 +08:00

drivers

Database drivers for package gdb.

Installation

Let's take pgsql for example.

go get -u github.com/gogf/gf/contrib/drivers/pgsql/v2

Choose and import the driver to your project:

import _ "github.com/gogf/gf/contrib/drivers/pgsql/v2"

Supported Drivers

MySQL

BuiltIn supported, nothing todo.

SQLite

import _ "github.com/gogf/gf/contrib/drivers/sqlite/v2"

Note:

  • It does not support Save/Replace features.

PostgreSQL

import _ "github.com/gogf/gf/contrib/drivers/pgsql/v2"

Note:

  • It does not support Save/Replace features.
  • It does not support LastInsertId.

SQL Server

import _ "github.com/gogf/gf/contrib/drivers/mssql/v2"

Note:

  • It does not support Save/Replace features.
  • It does not support LastInsertId.
  • It supports server version >= SQL Server2005

Oracle

import _ "github.com/gogf/gf/contrib/drivers/oracle/v2"

Note:

  • It does not support Save/Replace features.
  • It does not support LastInsertId.

Custom Drivers

It's quick and easy, please refer to current driver source. It's quite appreciated if any PR for new drivers support into current repo.