{"repo":"fndome/xb","free":true,"listed":false,"github":"https://github.com/fndome/xb","clone":"git clone https://github.com/fndome/xb.git","description":"query builder of golang, build sql for go framework: sqlx, gorp... build json for Qdrant vectordb, custom for any database .... the AI-First vector db builder for rag","language":"Go","stars":19,"topics":["query-builder","golang","json","vector-database","xb","vectordb"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"xb (eXtensible Builder) Languages: English 中文 xb is an AI-first SQL/JSON builder for relational + vector databases. One fluent API builds: - SQL for database/sql , sqlx , gorm , any raw driver - JSON for Qdrant (Recommend / Discover / Scroll) and other vector stores - Hybrid pipelines that mix SQL tables with vector similarity Everything flows through Custom() + Build() so the surface stays tiny even as capabilities grow. Notes - Persistence structs mirror the database schema, so numeric primary keys can stay as plain values. - Request/filter DTOs should declare non-primary numeric and boolean fields as pointers to distinguish “unset” from “0/false” and to leverage autobypass logic. - Need to bypass optimizations? Use X(\"...\") to inject raw SQL (the clause will never be auto-skipped), and pick explicit JOIN helpers (e.g., JOIN(NON JOIN) or custom builders) when you want to keep every JOIN even if it looks redundant. For BuilderX , call WithoutOptimization() to disable the JOIN/CTE optimizer entirely. - For non-functional control flow inside fluent chains, use Any(func( BuilderX)) to run loops or helper functions without breaking chaining, and Bool(func() bool, func( CondBuilder)) to conditionally add blocks while reusing the auto-filtered DSL. --- Highlights - Unified vector entry — JsonOfSelect() now covers all Qdrant search/recommend/discover/scroll flows. Legacy ToQdrant JSON() methods were retired. - Composable SQL — With/WithRecursive and UNION(kind, fn) let you express ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fndome","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fndome/xb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}