• Stars
    star
    149
  • Rank 241,117 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 10 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A SQL-ish language for DynamoDB

DQL

Build:build coverage
Documentation:http://dql.readthedocs.org/
Downloads:http://pypi.python.org/pypi/dql
Source:https://github.com/stevearc/dql

A simple, SQL-ish language for DynamoDB

As of November 2020, Amazon has released PartiQL support for DynamoDB. You should investigate that first to see if it addresses your needs.

Getting Started

Installation can be done in a variety of ways

  • An executable pex file is available on the release page.
  • You can run a script to generate the pex file yourself: curl -o- install.py https://raw.githubusercontent.com/stevearc/dql/master/bin/install.py | python
  • With pip: pip install dql

Examples

Here are some basic DQL examples to get you going:

Start the REPL:

$ dql
us-west-1>

Creating a table:

us-west-1> CREATE TABLE forum_threads (name STRING HASH KEY,
         >                             subject STRING RANGE KEY,
         >                             THROUGHPUT (4, 2));

Inserting data:

us-west-1> INSERT INTO forum_threads (name, subject, views, replies)
         > VALUES ('Self Defense', 'Defense from Banana', 67, 4),
         > ('Self Defense', 'Defense from Strawberry', 10, 0),
         > ('Cheese Shop', 'Anyone seen the camembert?', 16, 1);

Queries:

us-west-1> SCAN * FROM forum_threads;
us-west-1> SELECT count(*) FROM forum_threads WHERE name = 'Self Defense';
us-west-1> SELECT * FROM forum_threads WHERE name = 'Self Defense';

Mutations:

us-west-1> UPDATE forum_threads ADD views 1 WHERE
         > name = 'Self Defense' AND subject = 'Defense from Banana';
us-west-1> DELETE FROM forum_threads WHERE name = 'Cheese Shop';

Changing tables:

us-west-1> ALTER TABLE forum_threads SET THROUGHPUT (8, 4);
us-west-1> DROP TABLE forum_threads;

And don't forget to use help!

More Repositories

1

oil.nvim

Neovim file explorer: edit your filesystem like a buffer
Lua
2,688
star
2

conform.nvim

Lightweight yet powerful formatter plugin for Neovim
Lua
2,167
star
3

dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
Lua
1,580
star
4

aerial.nvim

Neovim plugin for a code outline window
Lua
1,472
star
5

overseer.nvim

A task runner and job management plugin for Neovim
Lua
850
star
6

pypicloud

S3-backed pypi server implementation
Python
502
star
7

vim-arduino

Vim plugin for compiling and uploading arduino sketches
Vim Script
330
star
8

stickybuf.nvim

Neovim plugin for locking a buffer to a window
Lua
218
star
9

gkeep.nvim

Google Keep integration for Neovim
Python
191
star
10

resession.nvim

A replacement for mksession with a better API
Lua
140
star
11

flywheel

Object mapper for Amazon's DynamoDB
Python
128
star
12

pypicloud-docker

Docker image for pypicloud
Shell
83
star
13

qf_helper.nvim

A collection of improvements for the quickfix buffer
Lua
82
star
14

profile.nvim

lua profiler for nvim
Lua
75
star
15

godot_parser

Python library for parsing Godot scene files
Python
49
star
16

dotfiles

Lua
40
star
17

pair-ls

Editor-agnostic remote pair programming
TypeScript
25
star
18

three.nvim

Neovim plugin for working with buffers, windows, and tabs
Lua
18
star
19

pair-ls.nvim

Neovim plugin for pair-ls
Lua
15
star
20

dynamo3

Python 3 compatible library for DynamoDB
Python
13
star
21

pyramid_webpack

Pyramid extension for managing assets with Webpack
Python
10
star
22

gitstack

A utility for stacking branches and github pull requests
Python
9
star
23

vim-vscode-snippets

A collection of vscode snippets for vim
Python
8
star
24

nvim_doc_tools

Python scripts for Neovim documentation generation
Python
7
star
25

pyramid_duh

Utilities that you'll want for nearly every pyramid app
Python
6
star
26

nvim-typecheck-action

Github action for typechecking a neovim plugin
Lua
5
star
27

Battlecode-Server-Tester

Distributed testing tool for the MIT Battlecode competition
Java
3
star
28

parseargs

Bash utility for parsing commandline arguments
Shell
2
star
29

pike

Asset pipeline and make tool
Go
2
star
30

pair-ls-vscode

VS Code extension for pair-ls
TypeScript
2
star
31

eat_your_vegetables

An organizational wrapper around celery
Python
2
star
32

bluepill

A command line utility for working inside docker containers
Python
2
star
33

pore

Command line full-text search
Rust
2
star
34

flow-coverage.nvim

Neovim plugin to display flow type coverage information
Lua
2
star
35

stevetags

Little website for tagging Dropbox files
Python
1
star
36

nightfox.nvim

🦊A highly customizable theme for vim and neovim with support for lsp, treesitter and a variety of plugins.
Lua
1
star