package
Version:
v0.0.0-...-a3546ac
Opens a new window with list of versions in this module.
Published: Nov 22, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
Sqlite columns sqlite列信息驱动
从mysql连接中获取mysql表列信息的驱动
使用方式
import _ github.com/herb/model/sql/db/columns
import _ github.com/herb/model/sql/db/columns/sqlitecolumns
columns,err:=columns.Driver("sqlite3")
支持的字段类型
- BOOL =>byte
- SMALLINT =>int
- MEDIUMINT =>int
- INT =>int
- INTEGER =>int
- TINYINT =>int
- INT2 =>int
- INT8 =>int
- BIGINT =>int64
- FLOAT =>float32
- DOUBLE =>float64
- DOUBLE PRECISION =>float64
- REAL =>float64
- DATETIME =>time.TIme
- CHAR =>string
- VARCHAR =>string
- CHARACTER =>string
- NVARCHAR =>string
- NCHAR =>string
- TEXT =>string
- BLOB =>byte
Documentation
¶
ConvertType convert culumn type to golang type.
Column sqlite column struct
Convert convert MysqlColumn to commn column
Columns sqlite columns type
func (*Columns) Columns ¶
Columns return loaded columns
func (*Columns) Load ¶
Load load columns with given database and table name
Source Files
¶
Click to show internal directories.
Click to hide internal directories.