aboutsummaryrefslogtreecommitdiff
path: root/lib/sql/sql.go
AgeCommit message (Collapse)Author
8 dayslib/sql: remove JoinValues in favour of [slices.Concat]Shulhan
2026-01-15all: convert license and copyright to use SPDX identifiersShulhan
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
2024-01-27lib/sql: support update, bind where condition, and subquery in MetaShulhan
This changes add parameter kind to NewMeta, which define the kind of DML to be mapped by Meta. The method Add renamed to Bind, and AddWhere renamed to BindWhere. New methods added to Meta, - Sub return the child of Meta for building subquery, - UpdateValues return the merged of ListValue and ListWhereValue for DML UPDATE - WhereFields return string that merge the ListWhereCond and ListHolder separated by "="
2023-09-11lib/sql: add missing comment to exported constantsShulhan
2022-05-09all: reformat all codes using gofmt 1.19 (the Go tip)Shulhan
2021-02-05sql: sort returned names on ExtractSQLFields sorted in ascending orderShulhan
This is to make sure that any test that use the package always predictable. While at it, add paramter to change placeholder on ExtractSQLFields.
2020-06-10all: update email addressShulhan
2020-02-13sql: a new package as an extension to "database/sql"Shulhan