Skip to content

Commit 22a0b74

Browse files
committed
chore: Initial commit
0 parents  commit 22a0b74

File tree

4 files changed

+151
-0
lines changed

4 files changed

+151
-0
lines changed

Diff for: .gitattributes

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.inc text
7+
*.pas text
8+
*.pp text
9+
*.lpk text
10+
*.lpi text
11+
*.lps text
12+
*.lpr text
13+
*.def text
14+
*.css text
15+
*.html text
16+
*.xml text
17+
*.sql text
18+
*.txt text
19+
20+
# Declare files that will always have CRLF line endings on checkout.
21+
*.iss text eol=crlf
22+
*.dpk text eol=crlf
23+
*.dproj text eol=crlf
24+
25+
# Declare files that will always have LF line endings on checkout.
26+
27+
28+
# Denote all files that are truly binary and should not be modified.
29+
*.png binary
30+
*.jpg binary
31+
*.exe binary
32+
*.res binary
33+
*.ico binary
34+
*.dll binary
35+
36+
# Keep these files from archive/exports, mainly from production.
37+
.gitignore export-ignore
38+
.gitattributes export-ignore

Diff for: .gitignore

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# LevelDB project specific
2+
/bin
3+
4+
# Compiled l10n files: .mo should be ignored
5+
*.mo
6+
7+
# Ghostwriter backups
8+
*.backup
9+
10+
# nano editor backup files
11+
*.swp
12+
13+
# Uncomment these types if you want even more clean repository. But be careful.
14+
# It can make harm to an existing project source. Read explanations below.
15+
#
16+
# Resource files are binaries containing manifest, project icon and version info.
17+
# They can not be viewed as text or compared by diff-tools. Consider replacing them with .rc files.
18+
*.res
19+
20+
# Delphi/Lazarus compiler-generated binaries (safe to delete)
21+
*.exe
22+
*.dll
23+
*.bpl
24+
*.bpi
25+
*.dcp
26+
*.so
27+
*.apk
28+
*.drc
29+
*.map
30+
*.dres
31+
*.rsm
32+
*.tds
33+
*.dcu
34+
*.lib
35+
*.o
36+
*.or
37+
*.ppu
38+
*.dbg
39+
*.compiled
40+
41+
# Delphi autogenerated files (duplicated info)
42+
*.cfg
43+
*Resource.rc
44+
45+
# Delphi local files (user-specific info)
46+
*.local
47+
*.identcache
48+
*.projdata
49+
*.tvsconfig
50+
*.dsk
51+
52+
# Delphi history and backups
53+
__history/
54+
*.~*
55+
56+
# Lazarus history, backups and session
57+
backup/
58+
*.bak
59+
*.lps
60+
61+
# Castalia statistics file
62+
*.stat

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright © 2024 Gustavo Carreno <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Diff for: README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# LevelDB for Object Pascal
2+
3+
> **Disclaimer**
4+
>
5+
> In the spirit of full disclosure and due to my utter laziness in coming up with the bulk of the boilerplate code, I turned to `ChatGPT`.\
6+
> You can see the series of prompts and answers I've got in the [research](research) folder.
7+
8+
This is a `C` header translation for the key-value pair database [`LevelDB`](https://github.com/google/leveldb) from Google.
9+
10+
It also contains a skeleton class to wrap the `C` header translation and make it a bit easier to use.
11+
12+
## Prerequisites
13+
14+
### Linux
15+
16+
The package `libleveldb1d` should be installed in order for the tests to compile:
17+
18+
```console
19+
$ sudo apt install libleveldb1n
20+
```
21+
22+
> **NOTE**: Since this is being tested on an Ubuntu 24.04, I'll need the community to help me pin down any different package.
23+
24+
### Windows
25+
26+
Coming soon.
27+
28+
### macOS
29+
30+
Coming soon.

0 commit comments

Comments
 (0)