Brew Sqlite



Sqlite installed by Homebrew is keg-only, which is not linked to /usr/local/. This is because system already have older version of sqlite3. If you really want to invoke Homebrew's sqlite binary, specify full path as below. $ /usr/local/opt/sqlite/bin/sqlite3 (All Homebrew package is. Conda install -c conda-forge nodejs or brew install node #for MacOS users The jupyterlab-sql extension is one such useful extension that lets you add a SQL user interface to Jupyter Lab. This has two primary advantages: The SQL tables can be explored with a simple point and click. Tables can also be modified and read with custom queries.

  1. Brew Sqlite Browser
  2. Brew Sqlite Download
Rebuilding node-sqlite3 with support for statically linked SQLCipher
custom-node-sqlite3-binding.gyp
# This is a modified version of binding.gyp (from node-sqlite3) that allows
# SQLCipher to be *statically linked* for Electron distribution to machines that
# do not have SQLCipher development headers present. If you distribute
# node-sqlite3 with dynamically linked SQLite/SQLCipher bindings (the default),
# your app will error out at runtime on user's machines that do not have
# SQLCipher.
#
# This problem is tricky to test and catch because the app will work fine on
# your machine, because you've probably installed SQLCipher to custom-build
# node-sqlite3. To test that everything is working, package your Electron app,
# uninstall SQLCipher (i.e. `brew uninstall sqlcipher`), then run your app.
#
# This was very finnicky and tricky to get right. The final source of truth was
# this GitHub comment:
# https://github.com/fritx/win-sqlcipher/issues/2#issuecomment-326524839
#
# I run a script as part of my package.json `postinstall` script that replaces
# ~/node_modules/sqlite3/binding.gyp with this version of binding.gyp, then I
# run the appropriate `npm rebuild` command for my OS and Electron version.
#
# You will not need the compiler/linker flags (`export LDFLAGS='-L`brew --prefix`/opt/sqlcipher/lib'` and `export CPPFLAGS='-I`brew --prefix`/opt/sqlcipher/include'`) but you will need to additionally link the crypto library.
# Example command:
# export LDFLAGS='-lcrypto'
# npm rebuild sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix` --runtime=electron --target=2.0.11 --dist-url=https://atom.io/download/electron`
{
'includes': [ 'deps/common-sqlite.gypi' ],
'variables': {
'sqlite%':'internal',
'sqlite_libname%':'sqlite3'
},
'targets': [
{
'target_name': '<(module_name)',
'include_dirs': ['<!(node -e 'require('nan')')'],
'conditions': [
['sqlite != 'internal', {
'include_dirs': [ '/usr/local/opt/sqlcipher/include/sqlcipher' ],
'libraries': [
'/usr/local/opt/sqlcipher/lib/libsqlcipher.a'
],
'conditions': [ [ 'OS'linux', {'libraries+':['-Wl,-rpath=<@(sqlite)/lib/libsqlcipher.a']} ] ],
'conditions': [ [ 'OS!='win', {'libraries+':['-L<@(sqlite)/lib/libsqlcipher.a']} ] ],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': [
'<(sqlite)/lib'
],
},
}
},
{
'dependencies': [
'deps/sqlite3.gyp:sqlite3'
]
}
]
],
'sources': [
'src/database.cc',
'src/node_sqlite3.cc',
'src/statement.cc'
]
},
{
'target_name': 'action_after_build',
'type': 'none',
'dependencies': [ '<(module_name)' ],
'copies': [
{
'files': [ '<(PRODUCT_DIR)/<(module_name).node' ],
'destination': '<(module_path)'
}
]
}
]
}
package.json
{
'name': 'example',
'scripts': {
'postinstall': 'yarn flow-typed && yarn build-dll && yarn limited-electron-rebuild && yarn rebuild-sqlite',
'limited-electron-rebuild': 'electron-rebuild --only @sentry/electron,sequelize',
'rebuild-sqlite': 'yarn install-sqlcipher && yarn copy-custom-node-sqlite3-binding && yarn npm-rebuild-sqlite',
'install-sqlcipher': 'brew install sqlcipher --with-fts',
'copy-custom-node-sqlite3-binding': 'cp ./internals/scripts/custom-node-sqlite3-binding.gyp ./node_modules/sqlite3/binding.gyp',
'npm-rebuild-sqlite': 'LDFLAGS='-lcrypto' npm rebuild sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix` --runtime=electron --target=2.0.11 --dist-url=https://atom.io/download/electron &>/dev/null',
},
'build': {
'npmRebuild': false//Wehandlerebuildinginlimited-electron-rebuildandrebuild-sqlcipher
}
}
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

News

Brew Sqlite Browser

2017-09-28 - Added PortableApp version of 3.10.1. Thanks John. :)
2017-09-20 - DB Browser for SQLite 3.10.1 has been released! :D
2017-09-08 - Removed the continuous AppImage builds for Linux due to problems with the upload script.

Screenshot

What it is

DB Browser for SQLite is a high quality, visual, open source tool to create, design, and edit database files compatible with SQLite.

It is for users and developers wanting to create databases, search, and edit data. It uses a familiar spreadsheet-like interface, and you don't need to learn complicated SQL commands.

Controls and wizards are available for users to:

  • Create and compact database files
  • Create, define, modify and delete tables
  • Create, define and delete indexes
  • Browse, edit, add and delete records
  • Search records
  • Import and export records as text
  • Import and export tables from/to CSV files
  • Import and export databases from/to SQL dump files
  • Issue SQL queries and inspect the results
  • Examine a log of all SQL commands issued by the application

What it is not

This program is not a visual shell for the sqlite command line tool. It does not require familiarity with SQL commands. It is a tool to be used both by developers and by end users, and it must remain as simple to use as possible in order to achieve its goals.

Nightly builds

Nightly builds for Windows and OSX can be downloaded here:

Windows

Windows releases can be downloaded here:

Note - If for some reason the standard Windows release doesn't workfor you (eg it gives an error), try a nightly build. They often fix bugsreported after the last release. :D

MacOS X / macOS

DB Browser for SQLite works well on MacOS X / macOS.

  • OSX 10.8 (Mountain Lion) - 10.13 (High Sierra) are tested and known to work

OSX releases can be downloaded here:

Or installed via Homebrew Cask:

brew cask install db-browser-for-sqlite

Linux

DB Browser for SQLite works well on Linux.

Arch Linux

Arch Linux provides a package through pacman.

Brew Sqlite Download

Fedora

For Fedora (i386 and x86_64) you can install by issuing:

Download acrobat 11 mac. $ sudo dnf install sqlitebrowser

Debian


Note that Debian focuses more on stability rather than newest features. Therefore packages will typically contain some older (but well tested) version, compared to the latest release.

Update the cache using:

sudo apt-get update

Install the package using:

sudo apt-get install sqlitebrowser

Ubuntu and Derivatives

Stable release


For Ubuntu and derivaties, @deepsidhu1313provides a PPA with our latest release here:

To add this ppa just type in these commands in terminal:

sudo add-apt-repository -y ppa:linuxgndu/sqlitebrowser

Then update the cache using:

sudo apt-get update

Install the package using:

sudo apt-get install sqlitebrowser

Ubuntu 14.04.X, 15.04.X, 15.10.X and 16.04.X are supported for now (untilLaunchpad decides to discontinue building for any series).

Ubuntu Precise (12.04) and Utopic (14.10) are not supported:

  • Precise doesn't have a new enough Qt package in its repository by default, which is a dependency
  • Launchpad doesn't support Utopic any more, as that has reached its End of Life

Nightly builds


Nightly builds are available here:

To add this ppa just type in these commands in terminal:

sudo add-apt-repository -y ppa:linuxgndu/sqlitebrowser-testing

Then update the cache using:

sudo apt-get update

Install the package using:

sudo apt-get install sqlitebrowser

Other Linux

On others you'll need to compile it yourself using the (simple) instructionsin BUILDING.md.

FreeBSD

DB Browser for SQLite works well on FreeBSD, and there is a port for it (thanks to lbartoletti). Ace stream download mac. It can be installed using either this:

# make -C /usr/ports/databases/sqlitebrowser install

or this:

Diablo 2 download free mac. # pkg install sqlitebrowser

Developer mailing list

For development related discussion about DB4S and DBHub.io:

Twitter

Follow us on Twitter: https://twitter.com/sqlitebrowser

Website

Old project pages

Releases

  • Version 3.10.1 released - 2017-09-20
  • Version 3.10.0 released - 2017-08-20
  • Version 3.9.1 released - 2016-10-03
  • Version 3.9.0 released - 2016-08-24
  • Version 3.8.0 released - 2015-12-25
  • Version 3.7.0 released - 2015-06-14
  • Version 3.6.0 released - 2015-04-27
  • Version 3.5.1 released - 2015-02-08
  • Version 3.5.0 released - 2015-01-31
  • Version 3.4.0 released - 2014-10-29
  • Version 3.3.1 released - 2014-08-31 - Project renamed from 'SQLite Database Browser'
  • Version 3.3.0 released - 2014-08-24
  • Version 3.2.0 released - 2014-07-06
  • Version 3.1.0 released - 2014-05-17
  • Version 3.0.3 released - 2014-04-28
  • Version 3.0.2 released - 2014-02-12
  • Version 3.0.1 released - 2013-12-02
  • Version 3.0 released - 2013-09-15
  • Version 3.0rc1 released - 2013-09-09 - Project now on GitHub
  • Version 2.0b1 released - 2009-12-10 - Based on Qt4.6
  • Version 1.2 released - 2005-04-05
  • Version 1.1 released - 2004-07-20
  • Version 1.01 released - 2003-10-02
  • Version 1.0 released to public domain - 2003-08-19
Brew Sqlite

History

This program was developed originally by Mauricio Piacentini (@piacentini) from Tabuleiro Producoes, as the Arca Database Browser. The original version was used as a free companion tool to the Arca Database Xtra, a commercial product that embeds SQLite databases with some additional extensions to handle compressed and binary data.

The original code was trimmed and adjusted to be compatible with standard SQLite 2.x databases. The resulting program was renamed SQLite Database Browser, and released into the Public Domain by Mauricio. Icons were contributed by Raquel Ravanini, also from Tabuleiro. Jens Miltner (@jmiltner) contributed the code to support SQLite 3.x databases for the 1.2 release.

Pete Morgan (@daffodil) created an initial project on GitHub with the code in 2012, where several contributors fixed and improved pieces over the years. René Peinthor (@rp-) and Martin Kleusberg (@MKleusberg) then became involved, and have been the main driving force from that point. Justin Clift (@justinclift) helps out with testing on OSX, and started the new github.com/sqlitebrowser organisation on GitHub.

John T. Haller, of PortableApps.com fame, created the new logo. He based it on the Tango icon set (public domain).

In August 2014, the project was renamed to 'Database Browser for SQLite' at the request of Richard Hipp (creator of SQLite), as the previous name was creating unintended support issues.

In September 2014, the project was renamed to 'DB Browser for SQLite', to avoid confusion with an existing application called 'Database Browser'.

License

DB Browser for SQLite is bi-licensed under the Mozilla Public LicenseVersion 2, as well as the GNU General Public License Version 3 or later.

You can modify or redistribute it under the conditions of theselicenses.