<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 白海洋</title>
    <description>The latest articles on DEV Community by 白海洋 (@_706015150500ca0399b12).</description>
    <link>https://dev.to/_706015150500ca0399b12</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3949063%2F29e53d81-b66e-46cd-9c64-79259c314a2d.png</url>
      <title>DEV Community: 白海洋</title>
      <link>https://dev.to/_706015150500ca0399b12</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_706015150500ca0399b12"/>
    <language>en</language>
    <item>
      <title>Field-Level Permission Checks in Text-to-SQL Systems</title>
      <dc:creator>白海洋</dc:creator>
      <pubDate>Thu, 04 Jun 2026 14:41:27 +0000</pubDate>
      <link>https://dev.to/_706015150500ca0399b12/field-level-permission-checks-in-text-to-sql-systems-11ip</link>
      <guid>https://dev.to/_706015150500ca0399b12/field-level-permission-checks-in-text-to-sql-systems-11ip</guid>
      <description>&lt;p&gt;Recently, many teams have been working on Text-to-SQL, ChatBI, or data analysis agents. One often underestimated issue is that generating SQL is only the first step—deterministic semantic, permission, and audit checks must also be conducted before deployment.&lt;/p&gt;

&lt;p&gt;This article focuses on the issue of field-level permissions in Text-to-SQL: why table-level permissions are insufficient, and why checks are needed for sensitive fields, derived fields, filtering, and aggregation.&lt;/p&gt;

&lt;p&gt;Core Points:&lt;/p&gt;

&lt;p&gt;Table-level permissions are often too coarse for AI-generated SQL.&lt;br&gt;
Sensitive fields can appear in projections, filters, joins, aggregations, and derived results.&lt;br&gt;
Catalog-aware binding and lineage can help enforce field-level policy decisions.&lt;br&gt;
Original Link: &lt;a href="https://www.dpriver.com/blog/field-level-permission-checks-for-text-to-sql-systems/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_field_level_permission_checks_for_text_to_sql_systems" rel="noopener noreferrer"&gt;https://www.dpriver.com/blog/field-level-permission-checks-for-text-to-sql-systems/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_field_level_permission_checks_for_text_to_sql_systems&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Assess the Governance Readiness of LLM-Generated SQL</title>
      <dc:creator>白海洋</dc:creator>
      <pubDate>Thu, 04 Jun 2026 14:38:49 +0000</pubDate>
      <link>https://dev.to/_706015150500ca0399b12/how-to-assess-the-governance-readiness-of-llm-generated-sql-313i</link>
      <guid>https://dev.to/_706015150500ca0399b12/how-to-assess-the-governance-readiness-of-llm-generated-sql-313i</guid>
      <description>&lt;p&gt;Recently, many teams have been working on Text-to-SQL, ChatBI, or data analysis agents. One often underestimated issue is that generating SQL is only the first step—deterministic semantic, permission, and audit checks must also be conducted before deployment.&lt;/p&gt;

&lt;p&gt;This article discusses a readiness checklist for teams preparing to move LLM-generated SQL from experimentation to production, assessing whether governance capabilities are in place.&lt;/p&gt;

&lt;p&gt;Key Points:&lt;/p&gt;

&lt;p&gt;Governance readiness encompasses not only SQL generation quality but also validation, permission checks, lineage, and auditability.&lt;br&gt;
LLM-generated SQL should be tested within the context of real catalogs and policy frameworks.&lt;br&gt;
The article provides a checklist suitable for architecture reviews and pre-deployment inspections.&lt;br&gt;
Original Link: &lt;a href="https://www.dpriver.com/blog/how-to-evaluate-sql-governance-readiness-for-llm-generated-queries/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_how_to_evaluate_sql_governance_readiness_for_llm_generated_queries" rel="noopener noreferrer"&gt;https://www.dpriver.com/blog/how-to-evaluate-sql-governance-readiness-for-llm-generated-queries/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_how_to_evaluate_sql_governance_readiness_for_llm_generated_queries&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>LLM SQL Guard Architecture: Parser, Catalog, Policy Engine, Audit Log</title>
      <dc:creator>白海洋</dc:creator>
      <pubDate>Wed, 03 Jun 2026 15:51:40 +0000</pubDate>
      <link>https://dev.to/_706015150500ca0399b12/llm-sql-guard-architecture-parser-catalog-policy-engine-audit-log-1igd</link>
      <guid>https://dev.to/_706015150500ca0399b12/llm-sql-guard-architecture-parser-catalog-policy-engine-audit-log-1igd</guid>
      <description>&lt;p&gt;Recently, many teams are working on Text-to-SQL, ChatBI, or data analysis Agents. A problem that is easily underestimated is: generating SQL is only the first step; deterministic semantic, permission, and audit checks are still needed before deployment.&lt;/p&gt;

&lt;p&gt;This article discusses: a technical blueprint for architecture review and POC: explaining how an SQL Guard is composed of parser, catalog binding, policy engine, risk scoring, and audit log.&lt;/p&gt;

&lt;p&gt;Key Points:&lt;/p&gt;

&lt;p&gt;SQL Guard is not just syntax checking; it also requires catalog binding and policy context.&lt;br&gt;
The policy engine should output auditable decisions such as allow, warn, deny, or approval_required.&lt;br&gt;
Audit log enables retrospective review of governance decisions in Text-to-SQL.&lt;br&gt;
Original Link: &lt;a href="https://www.dpriver.com/blog/llm-sql-guard-architecture-parser-catalog-policy-engine-audit-log/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_llm_sql_guard_architecture_parser_catalog_policy_engine_audit_log" rel="noopener noreferrer"&gt;https://www.dpriver.com/blog/llm-sql-guard-architecture-parser-catalog-policy-engine-audit-log/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_llm_sql_guard_architecture_parser_catalog_policy_engine_audit_log&lt;/a&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>llm</category>
      <category>security</category>
      <category>sql</category>
    </item>
    <item>
      <title>SQL Semantic Validation for LLM-Generated Queries</title>
      <dc:creator>白海洋</dc:creator>
      <pubDate>Wed, 03 Jun 2026 15:46:12 +0000</pubDate>
      <link>https://dev.to/_706015150500ca0399b12/sql-semantic-validation-for-llm-generated-queries-3cc1</link>
      <guid>https://dev.to/_706015150500ca0399b12/sql-semantic-validation-for-llm-generated-queries-3cc1</guid>
      <description>&lt;p&gt;Recently, many teams are working on Text-to-SQL, ChatBI, or data analysis agents. An often underestimated issue is that SQL generated by LLMs should not be directly executed on production databases.&lt;/p&gt;

&lt;p&gt;This article discusses a technical topic: explaining why syntactically correct SQL still requires catalog binding, name resolution, and semantic checks.&lt;/p&gt;

&lt;p&gt;Key points:&lt;/p&gt;

&lt;p&gt;Syntactic correctness does not guarantee semantic correctness.&lt;br&gt;
Real catalog metadata is needed to resolve tables, columns, aliases, scopes, functions, and types.&lt;br&gt;
This serves as a key technical bridge from SQL parsing to SQL semantic governance.&lt;br&gt;
Original link: &lt;a href="https://www.dpriver.com/blog/sql-semantic-validation-for-llm-generated-queries/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_sql_semantic_validation_for_llm_generated_queries" rel="noopener noreferrer"&gt;https://www.dpriver.com/blog/sql-semantic-validation-for-llm-generated-queries/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_sql_semantic_validation_for_llm_generated_queries&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Prompt Engineering Cannot Truly Secure LLM-Generated SQL</title>
      <dc:creator>白海洋</dc:creator>
      <pubDate>Sun, 24 May 2026 13:53:01 +0000</pubDate>
      <link>https://dev.to/_706015150500ca0399b12/prompt-engineering-cannot-truly-secure-llm-generated-sql-11nb</link>
      <guid>https://dev.to/_706015150500ca0399b12/prompt-engineering-cannot-truly-secure-llm-generated-sql-11nb</guid>
      <description>&lt;p&gt;Recently, many teams are working on Text-to-SQL, ChatBI, or data analysis Agents. One underestimated issue is that SQL generated by LLMs should not directly enter production databases.&lt;br&gt;
This article discusses: addressing the common misconception that "prompt rules can control generated SQL," and explaining why pre-execution validation is still necessary.&lt;br&gt;
Key points:&lt;br&gt;
Prompts can guide the model, but cannot enforce database security.&lt;br&gt;
Generated SQL requires deterministic pre-execution validation.&lt;br&gt;
The correct pattern is prompt guidance + parser/catalog/policy/audit checks.&lt;br&gt;
Original link: &lt;a href="https://www.dpriver.com/blog/prompt-engineering-cannot-secure-llm-generated-sql/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_prompt_engineering_cannot_secure_llm_generated_sql" rel="noopener noreferrer"&gt;https://www.dpriver.com/blog/prompt-engineering-cannot-secure-llm-generated-sql/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_prompt_engineering_cannot_secure_llm_generated_sql&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>10 Security Risks of Text-to-SQL Before Going to Production</title>
      <dc:creator>白海洋</dc:creator>
      <pubDate>Sun, 24 May 2026 13:52:06 +0000</pubDate>
      <link>https://dev.to/_706015150500ca0399b12/10-security-risks-of-text-to-sql-before-going-to-production-2i2n</link>
      <guid>https://dev.to/_706015150500ca0399b12/10-security-risks-of-text-to-sql-before-going-to-production-2i2n</guid>
      <description>&lt;p&gt;Recently, many teams are working on Text-to-SQL, ChatBI, or data analysis Agents. One underestimated issue is that SQL generated by LLMs should not directly enter production databases.&lt;br&gt;
This article discusses: for teams currently launching Text-to-SQL, ChatBI, or database Agents, here are 10 categories of risks that must be checked before going live.&lt;br&gt;
Key points:&lt;br&gt;
Text-to-SQL security is not just about SQL injection.&lt;br&gt;
It also requires checking permissions, sensitive fields, high-cost queries, semantic errors, and auditing.&lt;br&gt;
This article serves as a pre-launch readiness checklist.&lt;br&gt;
Original link: &lt;a href="https://www.dpriver.com/blog/text-to-sql-security-10-risks-before-production-deployment/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_text_to_sql_security_10_risks_before_production_deployment" rel="noopener noreferrer"&gt;https://www.dpriver.com/blog/text-to-sql-security-10-risks-before-production-deployment/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_text_to_sql_security_10_risks_before_production_deployment&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why Enterprises Should Not Let LLMs Execute SQL Directly?</title>
      <dc:creator>白海洋</dc:creator>
      <pubDate>Sun, 24 May 2026 13:04:56 +0000</pubDate>
      <link>https://dev.to/_706015150500ca0399b12/why-enterprises-should-not-let-llms-execute-sql-directly-56nk</link>
      <guid>https://dev.to/_706015150500ca0399b12/why-enterprises-should-not-let-llms-execute-sql-directly-56nk</guid>
      <description>&lt;p&gt;Recently, many teams are working on Text-to-SQL, ChatBI, or data analysis Agents. One underestimated issue is that SQL generated by LLMs should not directly enter production databases.&lt;br&gt;
This article discusses: a risk explanation for managers and architecture leaders: there must be a validation layer between LLMs and production databases.&lt;br&gt;
Key points:&lt;br&gt;
Allowing LLMs to execute SQL directly brings security, permission, cost, and audit risks.&lt;br&gt;
Prompts are not enforcement mechanisms.&lt;br&gt;
A deterministic SQL validation layer can transform generative SQL into a controllable process.&lt;br&gt;
Original link: &lt;a href="https://www.dpriver.com/blog/why-enterprises-should-not-let-llms-execute-sql-directly/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_why_enterprises_should_not_let_llms_execute_sql_directly" rel="noopener noreferrer"&gt;https://www.dpriver.com/blog/why-enterprises-should-not-let-llms-execute-sql-directly/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_why_enterprises_should_not_let_llms_execute_sql_directly&lt;/a&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>llm</category>
      <category>security</category>
      <category>sql</category>
    </item>
    <item>
      <title>What is an LLM SQL Guard?</title>
      <dc:creator>白海洋</dc:creator>
      <pubDate>Sun, 24 May 2026 13:02:23 +0000</pubDate>
      <link>https://dev.to/_706015150500ca0399b12/what-is-an-llm-sql-guard-20ei</link>
      <guid>https://dev.to/_706015150500ca0399b12/what-is-an-llm-sql-guard-20ei</guid>
      <description>&lt;p&gt;Recently, many teams are working on Text-to-SQL, ChatBI, or data analysis Agents. One underestimated issue is that SQL generated by LLMs should not directly enter production databases.&lt;br&gt;
This article discusses: explaining LLM SQL Guard with clear definitions: why Text-to-SQL cannot rely solely on model generation, and why deterministic SQL checks are mandatory before execution.&lt;br&gt;
Key points:&lt;br&gt;
LLM-generated SQL may be syntactically correct but semantically incorrect or unsafe.&lt;br&gt;
SQL Guard performs deterministic checks before execution by combining parser, catalog, policy, risk, and audit.&lt;br&gt;
Suitable as an introductory article for AI data governance, ChatBI, and Text-to-SQL teams.&lt;br&gt;
Original link: &lt;a href="https://www.dpriver.com/blog/what-is-an-llm-sql-guard/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_what_is_an_llm_sql_guard" rel="noopener noreferrer"&gt;https://www.dpriver.com/blog/what-is-an-llm-sql-guard/?utm_source=dev&amp;amp;utm_medium=community&amp;amp;utm_campaign=ai_sql_governance_external_2026q2&amp;amp;utm_content=shenhuan_dev_what_is_an_llm_sql_guard&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
