readwise_sqlite_exporter

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 7 Imported by: 0

README

readwise-sqlite-exporter

Exports Readwise books and highlights to a SQLite3 database

Usage

READWISE_KEY=1234 go run github.com/franklinhu/readwise-sqlite-exporter/cli

The Readwise client assumes the API key is passed as the READWISE_KEY environment variable.

Development

sqlc

This project uses sqlc to generate the wrappers around database/sql. You'll need to install sqlc if you intend to modify the schema or available queries.

go install github.com/kyleconroy/sqlc/cmd/sqlc@latest
sqlc generate

TODO

  • Readwise pagination (client only fetches a single page)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportReadwiseToSqlite

func ExportReadwiseToSqlite(ctx context.Context, db sqlc.DBTX) error

func SetupDDL

func SetupDDL(ctx context.Context, db sqlc.DBTX) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL