Documentation
¶
Overview ¶
* @Author: hugo * @Date: 2024-04-19 16:18 * @LastEditors: hugo2lee * @LastEditTime: 2025-03-17 14:34 * @FilePath: \gotox\ormx\ormx.go * @Description: * * Copyright (c) 2024 by hugo, All Rights Reserved.
Index ¶
Constants ¶
const ( DefaultProjectName = DefaultMysqlProjectName MYSQL = "mysql" DefaultMysqlProjectName = "" POSTGRES = "postgres" DefaultPostgresProjectName = "public" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithMysql ¶
WithMysql is a shortcut for WithMysqlTableNamePrefix In very first version, we only support one mysql db with mutilple project tables to be separated start at 2025.03.31 not recommend to use
func WithMysqlMultipleDb ¶ added in v0.1.3
dbNameList is mysql[yourDbName].dsn in *.toml
func WithMysqlMultipleTableNamePrefix ¶ added in v0.1.3
default dsn is mysql.dsn in *.toml
func WithPostgres ¶
WithPostgres is a shortcut for WithPostgresSchema In very first version, we only support one postgres db with mutilple project schema to be separated start at 2025.03.31 not recommend to use
func WithPostgresMultipleSchema ¶ added in v0.1.3
default dsn is postgres.dsn in *.toml