docs: Add CLAUDE.md with codebase guidance

Create comprehensive documentation for future Claude Code instances working in this repository, including:
- Development commands for testing, building, and code quality
- Core architecture overview of the SQL query builder system
- Directory structure and component explanations
- Testing patterns and conventions
- Key dependencies and their purposes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-27 15:47:28 +08:00
co-authored by Claude
parent 764eccfafd
commit 304d553b3c
113 changed files with 914 additions and 432 deletions
+10 -10
View File
@@ -4,16 +4,16 @@ import (
"fmt"
"time"
dbv2 "git.fsdpf.net/go/db/v2"
_ "git.fsdpf.net/go/db/v2/dialect/mysql"
_ "git.fsdpf.net/go/db/v2/dialect/postgres"
_ "git.fsdpf.net/go/db/v2/dialect/sqlite3"
dbv2 "git.fsdpf.net/go/db"
_ "git.fsdpf.net/go/db/dialect/mysql"
_ "git.fsdpf.net/go/db/dialect/postgres"
_ "git.fsdpf.net/go/db/dialect/sqlite3"
"github.com/DATA-DOG/go-sqlmock"
)
// Creating a mysql dataset. Be sure to import the mysql adapter.
func ExampleDialect_datasetMysql() {
// import _ "git.fsdpf.net/go/db/v2/dialect/mysql"
// import _ "git.fsdpf.net/go/db/dialect/mysql"
d := dbv2.Dialect("mysql")
ds := d.From("test").Where(dbv2.Ex{
@@ -34,7 +34,7 @@ func ExampleDialect_datasetMysql() {
// Creating a mysql database. Be sure to import the mysql adapter.
func ExampleDialect_dbMysql() {
// import _ "git.fsdpf.net/go/db/v2/dialect/mysql"
// import _ "git.fsdpf.net/go/db/dialect/mysql"
type item struct {
ID int64 `db:"id"`
@@ -84,7 +84,7 @@ func ExampleDialect_dbMysql() {
// Creating a mysql dataset. Be sure to import the postgres adapter
func ExampleDialect_datasetPostgres() {
// import _ "git.fsdpf.net/go/db/v2/dialect/postgres"
// import _ "git.fsdpf.net/go/db/dialect/postgres"
d := dbv2.Dialect("postgres")
ds := d.From("test").Where(dbv2.Ex{
@@ -105,7 +105,7 @@ func ExampleDialect_datasetPostgres() {
// Creating a postgres dataset. Be sure to import the postgres adapter
func ExampleDialect_dbPostgres() {
// import _ "git.fsdpf.net/go/db/v2/dialect/postgres"
// import _ "git.fsdpf.net/go/db/dialect/postgres"
type item struct {
ID int64 `db:"id"`
@@ -155,7 +155,7 @@ func ExampleDialect_dbPostgres() {
// Creating a mysql dataset. Be sure to import the sqlite3 adapter
func ExampleDialect_datasetSqlite3() {
// import _ "git.fsdpf.net/go/db/v2/dialect/sqlite3"
// import _ "git.fsdpf.net/go/db/dialect/sqlite3"
d := dbv2.Dialect("sqlite3")
ds := d.From("test").Where(dbv2.Ex{
@@ -176,7 +176,7 @@ func ExampleDialect_datasetSqlite3() {
// Creating a sqlite3 database. Be sure to import the sqlite3 adapter
func ExampleDialect_dbSqlite3() {
// import _ "git.fsdpf.net/go/db/v2/dialect/sqlite3"
// import _ "git.fsdpf.net/go/db/dialect/sqlite3"
type item struct {
ID int64 `db:"id"`
Address string `db:"address"`