Skip to content

Commit

Permalink
Move python out of app directory (#62)
Browse files Browse the repository at this point in the history
* Move databasegen from app directory

It is not Haskell so I think should be somewhere else

* Refactor common example attributes
  • Loading branch information
MatBon01 authored Jun 20, 2023
1 parent 3cebf99 commit ad55bb0
Show file tree
Hide file tree
Showing 32 changed files with 9 additions and 23 deletions.
28 changes: 7 additions & 21 deletions a-deeper-dive-into-relational-algebra-by-way-of-adjunctions.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -63,37 +63,23 @@ executable appendix-example
hs-source-dirs: app
default-language: Haskell2010

executable old-comprehension
main-is: OldComprehensionExample.hs

-- Modules included in this executable, other than Main.
-- other-modules:

-- LANGUAGE extensions used by modules in this package.
-- other-extensions:

common example-properties
build-depends:
base >=4.16.4.0,
a-deeper-dive-into-relational-algebra-by-way-of-adjunctions,

hs-source-dirs: app/examples
default-language: Haskell2010

executable modular-product
main-is: ModularProductExample.hs

-- Modules included in this executable, other than Main.
-- other-modules:

-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
executable old-comprehension
import: example-properties
main-is: OldComprehensionExample.hs

build-depends:
base >=4.16.4.0,
a-deeper-dive-into-relational-algebra-by-way-of-adjunctions,

hs-source-dirs: app/examples
default-language: Haskell2010
executable modular-product
import: example-properties
main-is: ModularProductExample.hs

executable invoice-benchmark
main-is: InvoiceBenchmark.hs
Expand Down
2 changes: 0 additions & 2 deletions app/databasegen/Makefile

This file was deleted.

2 changes: 2 additions & 0 deletions databasegen/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hundred:
python3 generate_customer_database.py -o ../app/examples/tables --customer-records 100 --invoice-records 100 --customer-table c100 --invoice-table i100 first-names.csv surnames.csv
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ad55bb0

Please sign in to comment.