added sequel and sqlite bits for the table

pull/13/head
Adam Townsend 2023-09-13 19:08:40 -07:00
parent 81b22d0c4a
commit 795f547ff2
4 changed files with 14 additions and 0 deletions

View File

@ -7,3 +7,5 @@ source "https://rubygems.org"
gem "falcon", "~> 0.42.3"
gem "roda", "~> 3.72"
gem "sequel", "~> 5.72"

View File

@ -23,6 +23,7 @@ GEM
async
async-pool (0.4.0)
async (>= 1.25)
bigdecimal (3.1.4)
build-environment (1.13.0)
console (1.23.2)
fiber-annotation
@ -65,6 +66,8 @@ GEM
samovar (2.2.0)
console (~> 1.0)
mapping (~> 1.0)
sequel (5.72.0)
bigdecimal
timers (4.3.5)
traces (0.11.1)
@ -74,6 +77,7 @@ PLATFORMS
DEPENDENCIES
falcon (~> 0.42.3)
roda (~> 3.72)
sequel (~> 5.72)
BUNDLED WITH
2.4.19

View File

@ -0,0 +1,8 @@
Sequel.migration do
change do
create_table :links do
String :url, unique: true, null: false
String :code, primary_key: true, unique: true, null: false
end
end
end

BIN
db/url_shortener.db 100644

Binary file not shown.