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
+6 -6
View File
@@ -1,8 +1,8 @@
package mysql
import (
"git.fsdpf.net/go/db/v2"
"git.fsdpf.net/go/db/v2/exp"
"git.fsdpf.net/go/db"
"git.fsdpf.net/go/db/exp"
)
func DialectOptions() *db.SQLDialectOptions {
@@ -16,11 +16,11 @@ func DialectOptions() *db.SQLDialectOptions {
opts.SupportsConflictUpdateWhere = false
opts.SupportsInsertIgnoreSyntax = true
opts.SupportsConflictTarget = false
opts.SupportsWithCTE = false
opts.SupportsWithCTERecursive = false
opts.SupportsWithCTE = true
opts.SupportsWithCTERecursive = true
opts.SupportsDistinctOn = false
opts.SupportsWindowFunction = false
opts.SupportsDeleteTableHint = true
opts.SupportsWindowFunction = true
opts.SupportsDeleteTableHint = false
opts.UseFromClauseForMultipleUpdateTables = false
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"regexp"
"testing"
dbv2 "git.fsdpf.net/go/db/v2"
"git.fsdpf.net/go/db/v2/exp"
dbv2 "git.fsdpf.net/go/db"
"git.fsdpf.net/go/db/exp"
"github.com/stretchr/testify/suite"
)
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"testing"
"time"
dbv2 "git.fsdpf.net/go/db/v2"
"git.fsdpf.net/go/db/v2/dialect/mysql"
dbv2 "git.fsdpf.net/go/db"
"git.fsdpf.net/go/db/dialect/mysql"
_ "github.com/go-sql-driver/mysql"
"github.com/stretchr/testify/suite"
)