dialect

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package dialect 提供了部分数据库对 orm.Dialect 接口的实现。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mysql

func Mysql() orm.Dialect

Mysql 返回一个适配 mysql 的 Dialect 接口

支持以下 meta 属性

charset 字符集,语法为: charset(utf-8)
engine 使用的引擎,语法为: engine(innodb)

func Postgres

func Postgres() orm.Dialect

Postgres 返回一个适配 postgresql 的 Dialect 接口

func Sqlite3

func Sqlite3() orm.Dialect

Sqlite3 返回一个适配 sqlite3 的 orm.Dialect 接口

Meta 可以接受以下参数:

rowid 可以是 rowid(false);rowid(true),rowid,其中只有 rowid(false) 等同于 without rowid

Types

This section is empty.

Jump to

Keyboard shortcuts

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