An open API service indexing awesome lists of open source software.

https://github.com/netpyoung/nf.data-flow

:orange_book: Generate C# code, Sqlite/SqlCipher database from Excel
https://github.com/netpyoung/nf.data-flow

code-generator db-generator excel netpyoung-nf unity3d workflow

Last synced: 3 months ago
JSON representation

:orange_book: Generate C# code, Sqlite/SqlCipher database from Excel

Awesome Lists containing this project

README

        

# nf.data-flow

![flow.png](flow.png)
[flow.puml](flow.puml)

## introduce

this is sample dataflow. When I making a game(in unity), I don't like to hard-coding for data class from excel. I'm writing custom class generator, and data exporter for that work with [SqlCipher4Unity3D](https://github.com/netpyoung/SqlCipher4Unity3D).

## Gui

![docs/res/DataFlowGUI.png](docs/res/DataFlowGUI.png)

## Cli

``` cmd
$ dotnet-nf-dataflow
dotnet-nf-dataflow 2.0.0
Copyright (C) 2024 dotnet-nf-dataflow

ERROR(S):
At least one option from group 'out' (out_database, out_csharp) is required.

--in_paths (Group: in) .xlsx or directory

--config (Group: in) (Default: dataflow.yaml) config file path

--out_database (Group: out) database path

--out_csharp (Group: out) csharp directory

--password (Default: ) db password

--namespace (Default: AutoGenerated.DB) namespace

--template_paths template paths

--assemblely (Default: true) try to generate Assembly even if does not generate database

--datetime_as_ticks (Default: true) save datetime as ticks on database

--help Display this help screen.

--version Display version information.
```

## sheet

### Const

![docs/res/sheet_const.png](docs/res/sheet_const.png)

[CONST.cs](dataflow_unity/Assets/Hello.Complex/output/CONST.cs)

### Enum

![docs/res/sheet_enum.png](docs/res/sheet_enum.png)

[E_ENUM.cs](dataflow_unity/Assets/Hello.Complex/output/E_ENUM.cs)

### Class

![docs/res/sheet_class.png](docs/res/sheet_class.png)

[DCharacter.cs](dataflow_unity/Assets/Hello.Complex/output/DCharacter.cs)

## db

![output_db_value.png](docs/res/output_db_value.png)
![output_db_scheme.png](docs/res/output_db_scheme.png)
[output.db](dataflow_unity/Assets/Hello.Complex/output/output.db)

## etc

``` cmd
$ dotnet --version
8.0.401
```

## Ref

- liquid
-
-
- sqlite
- [Sqlite](https://www.sqlite.org/) && [Sqlcipher](https://www.zetetic.net/sqlcipher/)
- [SqlCipher4Unity3D](https://github.com/netpyoung/SqlCipher4Unity3D)
-
- [Rakefile](https://github.com/ruby/rake)
-