package
0.2.11
Repository: https://github.com/sted/smoothdb.git
Documentation: pkg.go.dev

# Functions

AcquireConnection takes a connection from a database pool.
No description provided by the author
No description provided by the author
ContextWithDb creates a context and gets a connection to the requested database, with a specific role.
ContextWithDb creates a context using a specific connection.
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
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
FillContext compiles and inserts the information related to the database, cresting a new derived context.
No description provided by the author
No description provided by the author
No description provided by the author
GetConn gets the database connection from the current context.
GetConnAndSchema gets the database connection and the schema from the current context.
No description provided by the author
No description provided by the author
GetDb gets the database from the current context.
GetDbRole gets the role from the current context.
No description provided by the author
No description provided by the author
/table?filter.
No description provided by the author
No description provided by the author
GetQueryOptions gets the query options from the current context.
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
GetSmoothContext gets SmoothContext from the standard context.
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
InitDbEngine creates a connection pool, connects to the engine and initializes it.
No description provided by the author
No description provided by the author
NewDbLogger accepts a zerolog.Logger as input and returns a new custom pgx logging facade as output.
No description provided by the author
No description provided by the author
PrepareConnection starts a transaction if the configuration requires it, i.e.
PrepareDatabase prepares the database for SmoothDb.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReleaseConn releases a connection to the proper pool.
ReleaseConnection releases a connection to the proper pool.
No description provided by the author
SetQueryBuilder allows changing the query builder in the current context.
SetRequestParser allows changing the request parser in the current context.
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

# Constants

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

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
BuildStack represents the context when navigating the AST produced by the parser.
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
CustomRows is used for testing, to be able to do more iterations on a single query result.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DbEngine represents the database engine (the PostgreSQL instance or "cluster").
No description provided by the author
No description provided by the author
Field represents a column and its attributes in the different parts of a query: select, where, order, etc clauses.
No description provided by the author
No description provided by the author
Join containts information to create a join relationship.
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
QueryParts is the root of the AST produced by the request parser.
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
SelectField can contain a selected field or a relationship with another table.
SelectRelation stores information about a relationship, expressed in the select clause like: /table?select=id,name,other1(name),...other2(id).
No description provided by the author
SmoothContext contains all the information needed to perform database commands as well as configured parser and query builder.
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

# Interfaces

No description provided by the author
RequestParser is the interface used to parse the query string in the request and extract the significant headers.
No description provided by the author

# Type aliases

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