{"modulePath":"github.com/sunary/sqlize","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sqlbuilder\n\n## Constants\n\n```go\nconst (\n\tSqlTagDefault = \"sql\"\n)\n```\nTag prefixes\n\n## Types\n\n```go\ntype SqlBuilder struct {\n\t// contains filtered or unexported fields\n}\n```\nSqlBuilder ...\n\n```go\nfunc NewSqlBuilder(opts ...SqlBuilderOption) *SqlBuilder\n```\nNewSqlBuilder ...\n\n```go\nfunc (s SqlBuilder) AddTable(obj interface{}) string\n```\nAddTable ...\n\n```go\nfunc (s SqlBuilder) GetTableName(t interface{}) (string, string)\n```\nGetTableName read from TableNameFn or parse table name from model as snake\\_case return object name and table name\n\n```go\nfunc (s *SqlBuilder) MappingTables(m map[string]string)\n```\nMappingTables ...\n\n```go\nfunc (s SqlBuilder) RemoveTable(tb interface{}) string\n```\nRemoveTable ...\n\n```go\ntype SqlBuilderOption interface {\n\t// contains filtered or unexported methods\n}\n```\nSqlBuilderOption ...\n\n```go\nfunc WithCommentGenerate() SqlBuilderOption\n```\nWithCommentGenerate default is off\n\n```go\nfunc WithDialect(dialect sqltemplates.SqlDialect) SqlBuilderOption\n```\nWithDialect ...\n\n```go\nfunc WithMysql() SqlBuilderOption\n```\nWithMysql default\n\n```go\nfunc WithPluralTableName() SqlBuilderOption\n```\nWithPluralTableName Table name in plural convention - ending with \\`s\\`\n\n```go\nfunc WithPostgresql() SqlBuilderOption\n```\nWithPostgresql ...\n\n```go\nfunc WithSqlLowercase() SqlBuilderOption\n```\nWithSqlLowercase ...\n\n```go\nfunc WithSqlTag(sqlTag string) SqlBuilderOption\n```\nWithSqlTag default tag is \\`sql\\`\n\n```go\nfunc WithSqlUppercase() SqlBuilderOption\n```\nWithSqlUppercase default\n\n```go\nfunc WithSqlite() SqlBuilderOption\n```\nWithSqlite ...\n\n```go\nfunc WithSqlserver() SqlBuilderOption\n```\nWithSqlserver ...\n\n","path":"github.com/sunary/sqlize/sqlbuilder","name":"sqlbuilder","synopsis":"","isRedistributable":true}
