feat: add base database management

This commit is contained in:
Alexander Navarro 2025-05-07 14:36:26 -04:00
parent 1d5a517395
commit 1e3c235b78
11 changed files with 132 additions and 20 deletions

12
.idea/dataSources.xml generated Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="db.sql" uuid="63174beb-6dc0-40c0-9b07-b6f1fa6a2b72">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
<jdbc-url>jdbc:sqlite:$USER_HOME$/.local/share/readwise-bulk-upload/db.sql</jdbc-url>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
</component>
</project>

41
.idea/sqlDataSources.xml generated Normal file
View file

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DdlMappings">
<mapping uuid="eedfdaf6-31da-4977-9d85-3305b34ce4b6" name="DDL Mapping">
<data-sources db="63174beb-6dc0-40c0-9b07-b6f1fa6a2b72" ddl="3e504b62-07f8-4764-93df-2dc331b571e1" />
<scope>
<node negative="1">
<node kind="schema" qname="main" />
<node kind="database" qname="@" />
</node>
</scope>
</mapping>
</component>
<component name="SqlDataSourceStorage">
<option name="dataSources">
<list>
<State>
<option name="id" value="3e504b62-07f8-4764-93df-2dc331b571e1" />
<option name="name" value="Migrations" />
<option name="dbmsName" value="SQLITE" />
<option name="urls">
<array>
<option value="file://$PROJECT_DIR$/migrations" />
</array>
</option>
<option name="outLayout" value="File per object with order.groovy" />
<option name="scriptOptions">
<map>
<entry key="UseCompactDef" value="1" />
</map>
</option>
<option name="scopes">
<map>
<entry key="$PROJECT_DIR$/migrations" value="" />
</map>
</option>
</State>
</list>
</option>
</component>
</project>

8
.idea/sqldialects.xml generated Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="SqlDialectMappings">
<file url="file://$PROJECT_DIR$/migrations" dialect="SQLite" />
<file url="file://$PROJECT_DIR$/migrations/002_statuses.sql" dialect="SQLite" />
<file url="PROJECT" dialect="SQLite" />
</component>
</project>