forked from AP-CT/Shoppe-Manne
		
	Compare commits
	
		
			12 Commits
		
	
	
		
			master
			...
			sqlitetest
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					270c358698 | ||
| 
						 | 
					c90064c2ae | ||
| 
						 | 
					92612eb4ef | ||
| 
						 | 
					48eec85893 | ||
| 
						 | 
					0c48596130 | ||
| 
						 | 
					e715879f43 | ||
| 
						 | 
					cc54ce8ff2 | ||
| 
						 | 
					b0328eae01 | ||
| 
						 | 
					95013fd087 | ||
| 
						 | 
					485d1c772f | ||
| 
						 | 
					a344ec0ace | ||
| 
						 | 
					ab14d21cc2 | 
							
								
								
									
										150
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										150
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,150 @@
 | 
			
		||||
# An example global gitignore file
 | 
			
		||||
#
 | 
			
		||||
# Place a copy if this at ~/.gitignore_global
 | 
			
		||||
# Run `git config --global core.excludesfile ~/.gitignore_global`
 | 
			
		||||
 | 
			
		||||
# Compiled source #
 | 
			
		||||
###################
 | 
			
		||||
*.com
 | 
			
		||||
*.class
 | 
			
		||||
*.dll
 | 
			
		||||
*.exe
 | 
			
		||||
*.o
 | 
			
		||||
*.so
 | 
			
		||||
*.pyc
 | 
			
		||||
*.pyo
 | 
			
		||||
 | 
			
		||||
# Packages #
 | 
			
		||||
############
 | 
			
		||||
# it's better to unpack these files and commit the raw source
 | 
			
		||||
# git has its own built in compression methods
 | 
			
		||||
*.7z
 | 
			
		||||
*.dmg
 | 
			
		||||
*.gz
 | 
			
		||||
*.iso
 | 
			
		||||
*.jar
 | 
			
		||||
*.rar
 | 
			
		||||
*.tar
 | 
			
		||||
*.zip
 | 
			
		||||
*.msi
 | 
			
		||||
 | 
			
		||||
# Logs and databases #
 | 
			
		||||
######################
 | 
			
		||||
*.log
 | 
			
		||||
*.sql
 | 
			
		||||
*.sqlite
 | 
			
		||||
 | 
			
		||||
# OS generated files #
 | 
			
		||||
######################
 | 
			
		||||
.DS_Store
 | 
			
		||||
.DS_Store?
 | 
			
		||||
._*
 | 
			
		||||
.Spotlight-V100
 | 
			
		||||
.Trashes
 | 
			
		||||
ehthumbs.db
 | 
			
		||||
Thumbs.db
 | 
			
		||||
desktop.ini
 | 
			
		||||
 | 
			
		||||
# Temporary files #
 | 
			
		||||
###################
 | 
			
		||||
*.bak
 | 
			
		||||
*.swp
 | 
			
		||||
*.swo
 | 
			
		||||
*~
 | 
			
		||||
*#
 | 
			
		||||
 | 
			
		||||
# IDE files #
 | 
			
		||||
###########################################################################
 | 
			
		||||
.vscode
 | 
			
		||||
.idea
 | 
			
		||||
.iml
 | 
			
		||||
*.sublime-workspace
 | 
			
		||||
.vscode/*
 | 
			
		||||
!.vscode/settings.json
 | 
			
		||||
!.vscode/tasks.json
 | 
			
		||||
!.vscode/launch.json
 | 
			
		||||
!.vscode/extensions.json
 | 
			
		||||
# User-specific stuff
 | 
			
		||||
.idea/**/workspace.xml
 | 
			
		||||
.idea/**/tasks.xml
 | 
			
		||||
.idea/**/usage.statistics.xml
 | 
			
		||||
.idea/**/dictionaries
 | 
			
		||||
.idea/**/shelf
 | 
			
		||||
# Generated files
 | 
			
		||||
.idea/**/contentModel.xml
 | 
			
		||||
# Sensitive or high-churn files
 | 
			
		||||
.idea/**/dataSources/
 | 
			
		||||
.idea/**/dataSources.ids
 | 
			
		||||
.idea/**/dataSources.local.xml
 | 
			
		||||
.idea/**/sqlDataSources.xml
 | 
			
		||||
.idea/**/dynamic.xml
 | 
			
		||||
.idea/**/uiDesigner.xml
 | 
			
		||||
.idea/**/dbnavigator.xml
 | 
			
		||||
# Gradle
 | 
			
		||||
.idea/**/gradle.xml
 | 
			
		||||
.idea/**/libraries
 | 
			
		||||
# Gradle and Maven with auto-import
 | 
			
		||||
# When using Gradle or Maven with auto-import, you should exclude module files,
 | 
			
		||||
# since they will be recreated, and may cause churn.  Uncomment if using
 | 
			
		||||
# auto-import.
 | 
			
		||||
# .idea/modules.xml
 | 
			
		||||
# .idea/*.iml
 | 
			
		||||
# .idea/modules
 | 
			
		||||
# CMake
 | 
			
		||||
cmake-build-*/
 | 
			
		||||
# Mongo Explorer plugin
 | 
			
		||||
.idea/**/mongoSettings.xml
 | 
			
		||||
# File-based project format
 | 
			
		||||
*.iws
 | 
			
		||||
# IntelliJ
 | 
			
		||||
out/
 | 
			
		||||
# mpeltonen/sbt-idea plugin
 | 
			
		||||
.idea_modules/
 | 
			
		||||
# JIRA plugin
 | 
			
		||||
atlassian-ide-plugin.xml
 | 
			
		||||
# Cursive Clojure plugin
 | 
			
		||||
.idea/replstate.xml
 | 
			
		||||
# Crashlytics plugin (for Android Studio and IntelliJ)
 | 
			
		||||
com_crashlytics_export_strings.xml
 | 
			
		||||
crashlytics.properties
 | 
			
		||||
crashlytics-build.properties
 | 
			
		||||
fabric.properties
 | 
			
		||||
# Editor-based Rest Client
 | 
			
		||||
.idea/httpRequests
 | 
			
		||||
# Android studio 3.1+ serialized cache file
 | 
			
		||||
.idea/caches/build_file_checksums.ser
 | 
			
		||||
###############################################################################################
 | 
			
		||||
 | 
			
		||||
####### c++
 | 
			
		||||
# Prerequisites
 | 
			
		||||
*.d
 | 
			
		||||
# Compiled Object files
 | 
			
		||||
*.slo
 | 
			
		||||
*.lo
 | 
			
		||||
*.o
 | 
			
		||||
*.obj
 | 
			
		||||
# Precompiled Headers
 | 
			
		||||
*.gch
 | 
			
		||||
*.pch
 | 
			
		||||
# Compiled Dynamic libraries
 | 
			
		||||
*.so
 | 
			
		||||
*.dylib
 | 
			
		||||
*.dll
 | 
			
		||||
# Fortran module files
 | 
			
		||||
*.mod
 | 
			
		||||
*.smod
 | 
			
		||||
# Compiled Static libraries
 | 
			
		||||
*.lai
 | 
			
		||||
*.la
 | 
			
		||||
*.a
 | 
			
		||||
*.lib
 | 
			
		||||
# Executables
 | 
			
		||||
*.exe
 | 
			
		||||
*.out
 | 
			
		||||
*.app
 | 
			
		||||
##############################
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#################### BUILD FILES
 | 
			
		||||
build/*
 | 
			
		||||
!build/build.xml
 | 
			
		||||
							
								
								
									
										30
									
								
								Development Guidelines.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								Development Guidelines.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
1.No "using namespace std;"
 | 
			
		||||
 | 
			
		||||
2.Clearly declare "private" inside of class. For example:
 | 
			
		||||
 | 
			
		||||
use 
 | 
			
		||||
```c++
 | 
			
		||||
class item{
 | 
			
		||||
    private:
 | 
			
		||||
    int price;
 | 
			
		||||
    public:
 | 
			
		||||
    getPrice();
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
instead of class
 | 
			
		||||
 
 | 
			
		||||
```c++
 | 
			
		||||
class item{
 | 
			
		||||
    int price;
 | 
			
		||||
    public:
 | 
			
		||||
    getPrice();
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
3.Declare inheritance type(public, private, protected) when using inheritance.
 | 
			
		||||
 | 
			
		||||
4.If not finished with code, add a TODO as comments.
 | 
			
		||||
 | 
			
		||||
5.Add comments to explain what you want to do.
 | 
			
		||||
@@ -1,3 +1,3 @@
 | 
			
		||||
# Shoppe-Manne
 | 
			
		||||
 | 
			
		||||
Basic shop management system written in C++
 | 
			
		||||
Basic shop management system written in c++
 | 
			
		||||
							
								
								
									
										9711
									
								
								headers/3rd-party/sqlite_orm.h
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9711
									
								
								headers/3rd-party/sqlite_orm.h
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										34
									
								
								main.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								main.cpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
#include <iostream>
 | 
			
		||||
#include <string>
 | 
			
		||||
#include "headers/3rd-party/sqlite_orm.h"
 | 
			
		||||
 | 
			
		||||
using namespace sqlite_orm;
 | 
			
		||||
 | 
			
		||||
struct employee{
 | 
			
		||||
    int id;
 | 
			
		||||
    std::string first_name;
 | 
			
		||||
    std::string last_name;
 | 
			
		||||
    double salary;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// class item{
 | 
			
		||||
//     public:
 | 
			
		||||
   
 | 
			
		||||
//     private:
 | 
			
		||||
// };
 | 
			
		||||
 | 
			
		||||
int main(){
 | 
			
		||||
    auto employees = make_storage("sqlite.db3",
 | 
			
		||||
                                make_table("Employees",
 | 
			
		||||
                                                make_column("id", &employee::id, autoincrement(), primary_key()),
 | 
			
		||||
                                                make_column("first_name", &employee::first_name),
 | 
			
		||||
                                                make_column("last_name", &employee::last_name),
 | 
			
		||||
                                                make_column("salary", &employee::salary)
 | 
			
		||||
                                )
 | 
			
		||||
);
 | 
			
		||||
    employees.sync_schema();
 | 
			
		||||
    employees.remove_all<employee>();
 | 
			
		||||
    employees.replace(employee{0,"Sagar","Ramsaransingh",120000});
 | 
			
		||||
    system("PAUSE");
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								sqlite.db3
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								sqlite.db3
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user