Second Brain: Crafted, Curated, Connected, Compounded on 10月02日 21:00
Dadbod数据库连接支持汇总
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文介绍了Dadbod支持的多种数据库连接方式,包括NoSQL数据库,并展示了如何配置和使用Dadbod连接数据库。

General:

# Features

# Supported DBs

As of 2025-02-23, supports a modern array of backends, including NoSQL databases:
- Big Query
- ClickHouse: clickhouse://[<host>[:port]]/[<database>]
- DuckDB: duckdb:/Users/sspaeti/Documents/duckdbs/playground-v1-1-1.duckdb
- Impala
- jq
- MongoDB
- MySQL
- MariaDB
- Oracle
- osquery
- PostgreSQL: postgresql:///foobar
- Presto
- Redis
- Snowflake
- SQL Server
- SQLite: sqlite:myfile.sqlite3 select count(*) from widgets
- Your own easily implemented adapter

    Easily configurable based on a project directory (as seen in rails.vim, for example), rather than just globally or in a per-file modelineFor those that just can’t live without some piece of dbext functionality, the option g:dadbod_manage_dbext is provided to force dbext to use Dadbod’s default database.

# Connect Databases

E.g. DuckDB

1
duckdb:/Users/sspaeti/Documents/duckdbs/playground-v1-1-1.duckdb

My configs in database.lua:

12345
      vim.g.dbs = {        local_postgres_sspaeti = 'postgres://postgres@localhost:5432/sspaeti',        duckdb_memory = 'duckdb:',        duckdb_file = 'duckdb:///tmp/analytics.duckdb',      }

In Action:

# Setup

# Alternatives


Origin:
References: SQL IDEs
Created 2023-10-19

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Dadbod 数据库连接 NoSQL数据库
相关文章