MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 13 as of 2021-07-20 16:24:12
  • sqlite

sqlite

  • https://www.sqlite.org/index.html

SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. SQLite is the most used database engine in the world.

[DjangoREST] also supports sqlite.

There is also a JDBC driver for it (Github source code) and it's JPA compliant.

A JDBC sample URL for a BD stored in sample.db file is

jdbc:sqlite:sample.db
  • apt install sqlite3
  • sqlite3 test.db

sqlite> CREATE TABLE IF NOT EXISTS PushNotificationsTable (push text);
sqlite> insert into PushNotificationsTable values('aaa');
sqlite> select * from PushNotificationsTable;
sqlite> .help
sqlite> .databases
sqlite> .tables
sqlite> .dbinfo
sqlite> .dump PushNotificationsTable
sqlite> .quit

Spring notes

pom.xml

                <dependency>
                        <groupId>com.zsoltfabok</groupId>
                        <artifactId>sqlite-dialect</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>org.xerial</groupId>
                        <artifactId>sqlite-jdbc</artifactId>
                        <version>3.28.0</version>
                </dependency>

application.properties

spring.datasource.url=jdbc:sqlite:/tmp/test.db
spring.datasource.driverClassName=org.sqlite.JDBC
spring.datasource.username=sa
spring.datasource.password=????????
spring.jpa.database-platform=org.hibernate.dialect.SQLiteDialect
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01