3.0.5 • Published 16 days ago

@shopify/shopify-app-session-storage-sqlite v3.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

Session Storage Adapter for SQLite

This package implements the SessionStorage interface that works with an instance of SQLite.

import {shopifyApp} from '@shopify/shopify-app-express';
import {SQLiteSessionStorage} from '@shopify/shopify-app-session-storage-sqlite';
import sqlite3 from 'sqlite3';

// You can construct using either a filename...
const storage = new SQLiteSessionStorage('/path/to/your.db');

// or an existing sqlite3.Database
const database = new sqlite3.Database('/path/to/your.db');
const storage = new SQLiteSessionStorage(database);

const shopify = shopifyApp({
  sessionStorage: storage,
  // ...
});

Note: SQLite is a local, file-based SQL database. It persists all tables to a single file on your local disk. As such, it’s simple to set up and is a great choice for getting started with Shopify App development. However, it won’t work when your app getting scaled across multiple instances because they would each create their own database.

If you prefer to use your own implementation of a session storage mechanism that is compatible with the @shopify/shopify-app-express package, see the implementing session storage guide.

3.0.5

16 days ago

3.0.4

24 days ago

3.0.3

1 month ago

3.0.2

2 months ago

3.0.1

3 months ago

3.0.0

3 months ago

2.0.4

4 months ago

2.0.3

4 months ago

2.0.2

5 months ago

1.2.8

8 months ago

1.2.7

9 months ago

1.2.6

9 months ago

1.2.5

10 months ago

1.2.4

10 months ago

1.2.9

8 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.2.3

11 months ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.0-rc.0

1 year ago