Coder Social home page Coder Social logo

emacsql-sqlite3's Introduction

Yet another EmacSQL backend for SQLite

https://melpa.org/packages/emacsql-sqlite3-badge.svg https://travis-ci.org/cireu/emacsql-sqlite3.svg?branch=master

Introduction

This is yet another EmacSQL backend for SQLite, which use official sqlite3 executable to access SQL database.

Installation

emacsql-sqlite3 is available on melpa.

Usage

For Emacs users, please notice that this package won’t provide any feature for convenience. If you don’t sure you need this, you probably don’t need this.

For package developers, this package can be a replacement of emacsql-sqlite and it doesn’t require user to have a C compiler, but please read following precautions.

  • You need to install sqlite3 official CLI tool, 3.8.2 version or above were tested, emacsql-sqlite3 may won’t work if you using lower version.
  • This package should be compatible with emacsql-sqlite3 for most cases. But foreign key support was disabled by default. To enable this feature, use (emacsql <db> [:pragma (= foreign_keys ON)])

The only entry point to a EmacSQL interface is emacsql-sqlite3, for more information, please check EmacSQL’s README.

About Closql

closql is using emacsql-sqlite as backend, you can use following code to force closql use emacsql-sqlite3.

(with-eval-after-load 'closql
  (defclass closql-database (emacsql-sqlite3-connection)
    ((object-class :allocation :class))))

Known issue

The tests don’t pass under Emacs 25.1 for unknown reason, so we don’t support Emacs 25.1 currently like emacsql-sqlite. But any PR to improve this are welcomed.

emacsql-sqlite3's People

Contributors

cireu avatar jethrokuan avatar jjlee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.