Categorygithub.com/axkit/dbw
modulepackage
0.6.1
Repository: https://github.com/axkit/dbw.git
Documentation: pkg.go.dev

# README

dbw

sql/database wrapper

# Functions

Append appends elem into arr array.
BindTables.
fieldAddrs returns slice of pointers to struct's fields excluding fields having tag value specified in excludeTag.
No description provided by the author
FieldNames returns names of struct fields separated by comma.
HasAutoincrementFieldID returns true if struct has field ID with one of type: int8, int16, int32, int64 and has no tag "noseq".
Inherit creates DB object using already existing sql.DB object.
MaskPostgreSQLConnectionString replaces password=12345 by password=*****.
New automatically recognises autoincrement using sequecne by existance of field ID with type int? If there is no autoicrement requrements set tag "noseq".
No description provided by the author
NewSequence creates Sequence object.
No description provided by the author
Open tries once to establish connection to database.
RepetableOpen tries to establish connection to database till ctx.Done() or success.
ToSnakeCase converts string like RobertEgorov to robert_egorov.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WrapError .

# Constants

No description provided by the author
DollarPlusPosition - знак доллара и номер позиции.
No description provided by the author
No description provided by the author
QuestionMark - вопросительный знак.
TagNoCache исключает поле при чтении записей функцией DoSelectCache().
TagNoIns исключает поле при вставке.
TagNoSeq запрещает генерацию значения для поля ID, если поле типа int используя последовательность tablename_SEQ.
TagNoUpd исключает поле при Update.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

AutoCheckTableExistance checks existance of table in NewTable() call.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FieldTagLabel содержит наименование тэга используемого в аннотациях к атрибутам структуры.
No description provided by the author

# Structs

DB wraps database/sql for better performance and logging.
No description provided by the author
Error describes error raising by SQL queries related to a single table represented by *Table or by arbitrary SQL query.
No description provided by the author
Sequence describes database object sequence and provides method to generate next value.
No description provided by the author
StmtInstance.
No description provided by the author
No description provided by the author
Tx describes transaction.

# Interfaces

No description provided by the author

# Type aliases

NullString defines types for nullable varchar column without additional "Valid bool" attributes.
NullTime defines types for nullable varchar column without additional "Valid bool" attributes.
ParamPlaceHolderType определяет тип плейсхолдера для переменных запроса.
No description provided by the author
TagExclusionRule описывает тип исключения или включения атрибутов структур в SQL запрос.